Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 43.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2213, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01286/0.2341, allocations: 11.97 MB / 443 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02271/0.2568, allocations: 17.57 MB / 460.6 MB, free: 9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.2589, allocations: 189.8 kB / 460.8 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002906/0.2618, allocations: 1.041 MB / 461.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007788/0.2696, allocations: 2.327 MB / 464.2 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004786/0.2744, allocations: 1.414 MB / 465.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.2848, allocations: 6.536 MB / 472.1 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005693/0.2853, allocations: 261 kB / 472.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001683/0.287, allocations: 1.143 MB / 473.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.2885, allocations: 1.075 MB / 474.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.2886, allocations: 76 kB / 474.7 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.2919, allocations: 1.245 MB / 475.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003597/0.2923, allocations: 325.7 kB / 476.2 MB, free: 9.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.2934, allocations: 0.978 MB / 477.2 MB, free: 8.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00462/0.298, allocations: 3.741 MB / 480.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.298, allocations: 0 / 480.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.298, allocations: 0 / 480.9 MB, free: 4.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.388e-05/0.2981, allocations: 0 / 480.9 MB, free: 4.543 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.005498/0.3035, allocations: 3.613 MB / 484.6 MB, free: 0.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3036, allocations: 12.03 kB / 484.6 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.3037, allocations: 90.52 kB / 484.7 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/0.3041, allocations: 401.5 kB / 485.1 MB, free: 380 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.3081, allocations: 2.378 MB / 487.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.3081, allocations: 37 kB / 487.5 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.3082, allocations: 51.98 kB / 487.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.3098, allocations: 0.7616 MB / 488.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3098, allocations: 0 / 488.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.3099, allocations: 16 kB / 488.3 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.3099, allocations: 19.98 kB / 488.3 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.3117, allocations: 0.8631 MB / 489.2 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005143/0.3169, allocations: 2.763 MB / 491.9 MB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001733/0.3186, allocations: 0.7207 MB / 492.7 MB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.3201, allocations: 0.8684 MB / 493.5 MB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02761/0.3477, allocations: 13.67 MB / 0.4953 GB, free: 9.664 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.3489, allocations: 0.6034 MB / 0.4959 GB, free: 9.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.737e-06/0.3489, allocations: 0 / 0.4959 GB, free: 9.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0119/0.3608, allocations: 4.517 MB / 0.5003 GB, free: 4.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.3609, allocations: 72.39 kB / 0.5004 GB, free: 4.383 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00323/0.3641, allocations: 2.696 MB / 0.503 GB, free: 1.672 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.081e-05/0.3642, allocations: 45.69 kB / 0.5031 GB, free: 1.621 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.3654, allocations: 1.308 MB / 0.5043 GB, free: 316 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003176/0.3658, allocations: 349.2 kB / 0.5047 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003715/0.3661, allocations: 238.4 kB / 0.5049 GB, free: 15.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3663, allocations: 345.9 kB / 0.5052 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.3675, allocations: 477.9 kB / 0.5057 GB, free: 14.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.3689, allocations: 0.6431 MB / 0.5063 GB, free: 14.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.3715, allocations: 1.141 MB / 0.5074 GB, free: 13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.3715, allocations: 4 kB / 0.5074 GB, free: 13 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003987/0.3755, allocations: 1.843 MB / 0.5092 GB, free: 11.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3755, allocations: 8 kB / 0.5092 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/0.3757, allocations: 112 kB / 0.5093 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007149/0.3764, allocations: 276.4 kB / 0.5096 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009026/0.3773, allocations: 187.7 kB / 0.5098 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.3877, allocations: 13.19 MB / 0.5227 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.3892, allocations: 88.03 kB / 0.5228 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.3894, allocations: 56 kB / 0.5228 GB, free: 12.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008079/0.3902, allocations: 436.7 kB / 0.5232 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004489/0.3906, allocations: 381.6 kB / 0.5236 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004938/0.3956, allocations: 2.064 MB / 0.5256 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3956, allocations: 8 kB / 0.5256 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3956, allocations: 4 kB / 0.5256 GB, free: 9.121 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3956, allocations: 3.984 kB / 0.5256 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.3975, allocations: 1.398 MB / 0.527 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001608/0.3977, allocations: 116 kB / 0.5271 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007555/0.3984, allocations: 135.8 kB / 0.5272 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006792/0.3991, allocations: 256.3 kB / 0.5275 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-05/0.3992, allocations: 47.98 kB / 0.5275 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1894/0.5886, allocations: 13.18 MB / 0.5404 GB, free: 97.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5886, allocations: 2.156 kB / 0.5404 GB, free: 97.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005104/0.5937, allocations: 2.405 MB / 0.5427 GB, free: 97.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009953/0.5947, allocations: 435.7 kB / 0.5432 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/0.595, allocations: 22.09 kB / 0.5432 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.596, allocations: 80.58 kB / 0.5433 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.5964, allocations: 150.5 kB / 0.5434 GB, free: 97.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.5965, allocations: 51.44 kB / 0.5434 GB, free: 97.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002136/0.5987, allocations: 1.768 MB / 0.5452 GB, free: 97.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5987, allocations: 0 / 0.5452 GB, free: 97.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001375/0.6, allocations: 0.6501 MB / 0.5458 GB, free: 97.03 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005562/0.6056, allocations: 3.679 MB / 0.5494 GB, free: 95.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003202/0.6088, allocations: 2.45 MB / 0.5518 GB, free: 93.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.6088, allocations: 0 / 0.5518 GB, free: 93.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/0.6107, allocations: 1.909 MB / 0.5537 GB, free: 91.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.613, allocations: 0.6181 MB / 0.5543 GB, free: 91.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02119/0.6342, allocations: 17.9 MB / 0.5717 GB, free: 73.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006691/0.6348, allocations: 1.108 MB / 0.5728 GB, free: 72.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009935/0.6358, allocations: 389.4 kB / 0.5732 GB, free: 72.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008729/0.6367, allocations: 1.194 MB / 0.5744 GB, free: 70.88 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/0.6367, allocations: 0 / 0.5744 GB, free: 70.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1201/0.7568, allocations: 71.01 MB / 0.6437 GB, free: 0.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/16.44, allocations: 3.438 kB / 0.6437 GB, free: 0.5 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.6861083219992]