Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001716/0.001716, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002143/0.002143, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 51.94 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2628, allocations: 49.16 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01246/0.2753, allocations: 13.58 MB / 409.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02547/0.3008, allocations: 19.46 MB / 429.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003046/0.3038, allocations: 197.8 kB / 429.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.3071, allocations: 1.107 MB / 430.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009266/0.3163, allocations: 2.297 MB / 433 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005152/0.3215, allocations: 1.408 MB / 434.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01202/0.3335, allocations: 6.322 MB / 440.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007957/0.3343, allocations: 257.1 kB / 441 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.3366, allocations: 1.046 MB / 442 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.3385, allocations: 1.064 MB / 443.1 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00021/0.3387, allocations: 76 kB / 443.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004395/0.3431, allocations: 1.159 MB / 444.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.3435, allocations: 325.7 kB / 444.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001652/0.3452, allocations: 1.324 MB / 445.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005668/0.3509, allocations: 3.733 MB / 449.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.3509, allocations: 0 / 449.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3509, allocations: 0 / 449.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.501e-05/0.3509, allocations: 11.94 kB / 449.7 MB, free: 13.79 MB / 366.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.005715/0.3566, allocations: 3.625 MB / 453.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.3567, allocations: 15.98 kB / 453.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.3568, allocations: 94.5 kB / 453.4 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004997/0.3573, allocations: 401.5 kB / 453.8 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00413/0.3615, allocations: 2.398 MB / 456.2 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.3615, allocations: 37 kB / 456.2 MB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.3616, allocations: 48 kB / 456.3 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.3632, allocations: 0.7616 MB / 457 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.3632, allocations: 0 / 457 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.178e-05/0.3633, allocations: 23.98 kB / 457.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.3633, allocations: 23.98 kB / 457.1 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3651, allocations: 0.8553 MB / 458 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005853/0.3709, allocations: 2.938 MB / 460.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.3727, allocations: 0.7247 MB / 461.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.3741, allocations: 0.8627 MB / 462.5 MB, free: 0.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02693/0.4011, allocations: 13.77 MB / 476.3 MB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00124/0.4023, allocations: 0.5997 MB / 476.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 2.735e-06/0.4023, allocations: 0 / 476.9 MB, free: 1.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01202/0.4143, allocations: 4.532 MB / 481.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.4144, allocations: 64.41 kB / 481.4 MB, free: 13.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.418, allocations: 2.713 MB / 484.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.505e-05/0.4181, allocations: 41.7 kB / 484.2 MB, free: 10.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.4193, allocations: 1.304 MB / 485.5 MB, free: 9.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003172/0.4196, allocations: 360.9 kB / 485.9 MB, free: 8.879 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003615/0.42, allocations: 234.4 kB / 486.1 MB, free: 8.641 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4202, allocations: 349.9 kB / 486.4 MB, free: 8.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4214, allocations: 477.9 kB / 486.9 MB, free: 7.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.4228, allocations: 0.6509 MB / 487.5 MB, free: 7.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002553/0.4254, allocations: 1.13 MB / 488.7 MB, free: 5.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4254, allocations: 0 / 488.7 MB, free: 5.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004045/0.4294, allocations: 1.834 MB / 490.5 MB, free: 4.043 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.4295, allocations: 8.469 kB / 490.5 MB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/0.4296, allocations: 124 kB / 490.6 MB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000718/0.4304, allocations: 260.4 kB / 490.9 MB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/0.4312, allocations: 199.7 kB / 491.1 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.4419, allocations: 13.23 MB / 0.4925 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.4433, allocations: 83.91 kB / 0.4926 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.4434, allocations: 59.98 kB / 0.4926 GB, free: 4.922 MB / 414.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.0008553/0.4443, allocations: 434.3 kB / 0.493 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004516/0.4447, allocations: 389.6 kB / 0.4934 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004878/0.4496, allocations: 2.064 MB / 0.4954 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.4496, allocations: 12 kB / 0.4954 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.4496, allocations: 8 kB / 0.4955 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.4496, allocations: 3.984 kB / 0.4955 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002017/0.4517, allocations: 1.527 MB / 0.4969 GB, free: 416 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001628/0.4518, allocations: 112 kB / 0.4971 GB, free: 304 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007037/0.4525, allocations: 135.8 kB / 0.4972 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006744/0.4532, allocations: 264.3 kB / 0.4974 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4533, allocations: 51.92 kB / 0.4975 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.4641, allocations: 13.22 MB / 0.5104 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4641, allocations: 8.016 kB / 0.5104 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00594/0.47, allocations: 2.407 MB / 0.5127 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/0.4712, allocations: 439.3 kB / 0.5132 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003148/0.4715, allocations: 16 kB / 0.5132 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009453/0.4725, allocations: 83.89 kB / 0.5133 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.4729, allocations: 148.7 kB / 0.5134 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.473, allocations: 51.97 kB / 0.5135 GB, free: 14.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002552/0.4755, allocations: 1.778 MB / 0.5152 GB, free: 12.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4755, allocations: 3.938 kB / 0.5152 GB, free: 12.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001628/0.4771, allocations: 0.6634 MB / 0.5158 GB, free: 11.81 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.006966/0.4841, allocations: 3.686 MB / 0.5194 GB, free: 8.066 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004314/0.4884, allocations: 2.448 MB / 0.5218 GB, free: 5.465 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.4884, allocations: 4.188 kB / 0.5218 GB, free: 5.461 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002762/0.4912, allocations: 1.905 MB / 0.5237 GB, free: 3.402 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002033/0.4932, allocations: 0.5288 MB / 0.5242 GB, free: 2.867 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03005/0.5233, allocations: 18.01 MB / 0.5418 GB, free: 480 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.5246, allocations: 1.662 MB / 0.5434 GB, free: 14.78 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.5259, allocations: 399.3 kB / 0.5438 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/0.5272, allocations: 1.198 MB / 0.545 GB, free: 13.19 MB / 478.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5272, allocations: 0 / 0.545 GB, free: 13.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3304/0.8576, allocations: 68.02 MB / 0.6114 GB, free: 110.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.93/19.79, allocations: 4 kB / 0.6114 GB, free: 110.7 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997606 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.Sinternal in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.38970086199697]