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.001379/0.001379, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001547/0.001547, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.43/1.43, 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.002539/0.002539, allocations: 43.92 kB / 377.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2443, allocations: 53.38 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01327/0.2576, allocations: 11.97 MB / 443 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02275/0.2803, allocations: 17.59 MB / 460.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.2821, allocations: 189.8 kB / 460.8 MB, free: 8.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.2848, allocations: 1.028 MB / 461.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006491/0.2912, allocations: 2.331 MB / 464.2 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004093/0.2953, allocations: 1.418 MB / 465.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009821/0.3052, allocations: 6.532 MB / 472.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.3057, allocations: 249 kB / 472.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.3074, allocations: 1.14 MB / 473.5 MB, free: 12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.3087, allocations: 1.028 MB / 474.5 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002023/0.3089, allocations: 76 kB / 474.6 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003488/0.3124, allocations: 1.21 MB / 475.8 MB, free: 9.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003638/0.3128, allocations: 325.7 kB / 476.1 MB, free: 9.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.3139, allocations: 0.9741 MB / 477.1 MB, free: 8.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005139/0.319, allocations: 3.749 MB / 480.9 MB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3191, allocations: 0 / 480.9 MB, free: 4.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3191, allocations: 0 / 480.9 MB, free: 4.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.962e-05/0.3191, allocations: 0 / 480.9 MB, free: 4.617 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.00573/0.3248, allocations: 3.613 MB / 484.5 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.3249, allocations: 12.03 kB / 484.5 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.325, allocations: 94.5 kB / 484.6 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004376/0.3254, allocations: 401.5 kB / 485 MB, free: 452 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004055/0.3295, allocations: 2.371 MB / 487.3 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.337e-05/0.3295, allocations: 40.92 kB / 487.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.3297, allocations: 48 kB / 487.4 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.3312, allocations: 0.7577 MB / 488.2 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3312, allocations: 4 kB / 488.2 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.975e-05/0.3313, allocations: 20 kB / 488.2 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.3313, allocations: 19.98 kB / 488.2 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.3332, allocations: 0.8553 MB / 489.1 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005048/0.3383, allocations: 2.774 MB / 491.9 MB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.34, allocations: 0.7091 MB / 492.6 MB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.3416, allocations: 0.8722 MB / 493.4 MB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02711/0.3687, allocations: 13.68 MB / 0.4952 GB, free: 9.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001263/0.3699, allocations: 0.5996 MB / 0.4958 GB, free: 9.117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.166e-06/0.3699, allocations: 0 / 0.4958 GB, free: 9.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01224/0.3822, allocations: 4.513 MB / 0.5002 GB, free: 4.543 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.3822, allocations: 68.39 kB / 0.5003 GB, free: 4.461 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/0.3857, allocations: 2.704 MB / 0.5029 GB, free: 1.742 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.095e-05/0.3857, allocations: 41.7 kB / 0.503 GB, free: 1.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.387, allocations: 1.315 MB / 0.5043 GB, free: 384 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002994/0.3873, allocations: 349 kB / 0.5046 GB, free: 32 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.3877, allocations: 238.5 kB / 0.5048 GB, free: 15.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3879, allocations: 341.9 kB / 0.5051 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/0.3892, allocations: 478 kB / 0.5056 GB, free: 14.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3906, allocations: 0.6431 MB / 0.5062 GB, free: 14.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002726/0.3933, allocations: 1.133 MB / 0.5073 GB, free: 13.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3933, allocations: 8 kB / 0.5073 GB, free: 13.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004074/0.3974, allocations: 1.835 MB / 0.5091 GB, free: 11.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.3974, allocations: 8 kB / 0.5091 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/0.3976, allocations: 120 kB / 0.5093 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006834/0.3983, allocations: 264.8 kB / 0.5095 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.3992, allocations: 199.7 kB / 0.5097 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.4099, allocations: 13.19 MB / 0.5226 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.4111, allocations: 92.08 kB / 0.5227 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4112, allocations: 56 kB / 0.5227 GB, free: 12.12 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.0007541/0.4119, allocations: 428.3 kB / 0.5231 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004051/0.4123, allocations: 389.5 kB / 0.5235 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00484/0.4172, allocations: 2.056 MB / 0.5255 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4172, allocations: 15.98 kB / 0.5255 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.4172, allocations: 4 kB / 0.5255 GB, free: 9.188 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4172, allocations: 3.984 kB / 0.5255 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.419, allocations: 1.39 MB / 0.5269 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001634/0.4191, allocations: 116 kB / 0.527 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.4199, allocations: 139.8 kB / 0.5271 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006387/0.4205, allocations: 256.3 kB / 0.5274 GB, free: 7.223 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.66e-05/0.4206, allocations: 43.98 kB / 0.5274 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01052/0.4311, allocations: 13.2 MB / 0.5403 GB, free: 8.828 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4311, allocations: 0 / 0.5403 GB, free: 8.828 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005632/0.4368, allocations: 2.403 MB / 0.5427 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.4379, allocations: 443.4 kB / 0.5431 GB, free: 5.938 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.4383, allocations: 19.98 kB / 0.5431 GB, free: 5.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4393, allocations: 83.89 kB / 0.5432 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/0.4396, allocations: 144.7 kB / 0.5433 GB, free: 5.695 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4398, allocations: 55.92 kB / 0.5434 GB, free: 5.641 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002527/0.4423, allocations: 1.774 MB / 0.5451 GB, free: 3.859 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4423, allocations: 0 / 0.5451 GB, free: 3.859 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001615/0.4439, allocations: 0.6557 MB / 0.5457 GB, free: 3.203 MB / 462.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.172/0.6159, allocations: 3.663 MB / 0.5493 GB, free: 120.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004091/0.62, allocations: 2.451 MB / 0.5517 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.62, allocations: 0 / 0.5517 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002244/0.6222, allocations: 1.903 MB / 0.5536 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002473/0.6247, allocations: 0.6229 MB / 0.5542 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02254/0.6473, allocations: 17.9 MB / 0.5717 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007057/0.648, allocations: 1.108 MB / 0.5727 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.649, allocations: 395.1 kB / 0.5731 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008694/0.6499, allocations: 1.191 MB / 0.5743 GB, free: 103.6 MB / 462.1 MB Notification: Performance of SimCode: time 6.42e-07/0.6499, allocations: 0 / 0.5743 GB, free: 103.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1202/0.7701, allocations: 70.75 MB / 0.6434 GB, free: 33.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.28/17.05, allocations: 7.188 kB / 0.6434 GB, free: 33.46 MB / 462.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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.csv","/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] "Error: Could not read variable mp1.Sinternal in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.7384502440691]