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.001323/0.001323, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00147/0.00147, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.00152/0.00152, allocations: 51.86 kB / 377.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2296, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0137/0.2433, allocations: 11.98 MB / 443 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02319/0.2664, allocations: 17.58 MB / 460.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.2685, allocations: 193.8 kB / 460.8 MB, free: 8.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002915/0.2715, allocations: 1.025 MB / 461.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007638/0.2791, allocations: 2.327 MB / 464.2 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004871/0.284, allocations: 1.422 MB / 465.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.2943, allocations: 6.533 MB / 472.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005855/0.2948, allocations: 249 kB / 472.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.2964, allocations: 1.143 MB / 473.5 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.2977, allocations: 1.083 MB / 474.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.2979, allocations: 76 kB / 474.7 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003291/0.3012, allocations: 1.237 MB / 475.9 MB, free: 9.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003447/0.3016, allocations: 329.6 kB / 476.2 MB, free: 9.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.3027, allocations: 0.9741 MB / 477.2 MB, free: 8.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004867/0.3076, allocations: 3.749 MB / 481 MB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3076, allocations: 0 / 481 MB, free: 4.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3076, allocations: 4 kB / 481 MB, free: 4.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.654e-05/0.3076, allocations: 0 / 481 MB, free: 4.539 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.005606/0.3132, allocations: 3.617 MB / 484.6 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3133, allocations: 8.031 kB / 484.6 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.3134, allocations: 98.5 kB / 484.7 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004376/0.3138, allocations: 393.5 kB / 485.1 MB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004105/0.3179, allocations: 2.374 MB / 487.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.318, allocations: 36.98 kB / 487.5 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.3181, allocations: 48 kB / 487.5 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3197, allocations: 0.7616 MB / 488.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3197, allocations: 0 / 488.3 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/0.3198, allocations: 20 kB / 488.3 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.3198, allocations: 19.98 kB / 488.3 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.3217, allocations: 0.8553 MB / 489.2 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.3269, allocations: 2.774 MB / 491.9 MB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.3286, allocations: 0.7129 MB / 492.7 MB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.3302, allocations: 0.8722 MB / 493.5 MB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0276/0.3578, allocations: 13.68 MB / 0.4953 GB, free: 9.652 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.3591, allocations: 0.5957 MB / 0.4959 GB, free: 9.047 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.176e-06/0.3591, allocations: 0 / 0.4959 GB, free: 9.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01223/0.3713, allocations: 4.513 MB / 0.5003 GB, free: 4.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3713, allocations: 72.39 kB / 0.5004 GB, free: 4.383 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/0.3747, allocations: 2.704 MB / 0.503 GB, free: 1.664 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.3748, allocations: 45.7 kB / 0.5031 GB, free: 1.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/0.3761, allocations: 1.308 MB / 0.5043 GB, free: 308 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/0.3764, allocations: 349 kB / 0.5047 GB, free: 15.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003773/0.3768, allocations: 238.4 kB / 0.5049 GB, free: 15.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.377, allocations: 345.9 kB / 0.5052 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.3783, allocations: 474 kB / 0.5057 GB, free: 14.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.3798, allocations: 0.647 MB / 0.5063 GB, free: 14.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.3826, allocations: 1.137 MB / 0.5074 GB, free: 13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3826, allocations: 0 / 0.5074 GB, free: 13 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004242/0.3868, allocations: 1.831 MB / 0.5092 GB, free: 11.13 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.3868, allocations: 8 kB / 0.5092 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001897/0.387, allocations: 127.9 kB / 0.5094 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007101/0.3877, allocations: 260.9 kB / 0.5096 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008941/0.3886, allocations: 199.7 kB / 0.5098 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.3993, allocations: 13.19 MB / 0.5227 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.4007, allocations: 87.89 kB / 0.5228 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.4008, 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.0008175/0.4016, allocations: 428.8 kB / 0.5232 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.4022, allocations: 389.6 kB / 0.5236 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005054/0.4072, allocations: 2.06 MB / 0.5256 GB, free: 9.137 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4072, allocations: 12 kB / 0.5256 GB, free: 9.125 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.4072, allocations: 8 kB / 0.5256 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.4072, allocations: 3.984 kB / 0.5256 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.4091, allocations: 1.386 MB / 0.527 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001722/0.4093, allocations: 116 kB / 0.5271 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007403/0.41, allocations: 139.8 kB / 0.5272 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006551/0.4107, allocations: 256.3 kB / 0.5275 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.4107, allocations: 43.98 kB / 0.5275 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.4214, allocations: 13.19 MB / 0.5404 GB, free: 8.762 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4214, allocations: 3.984 kB / 0.5404 GB, free: 8.758 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005659/0.427, allocations: 2.406 MB / 0.5427 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.428, allocations: 435.3 kB / 0.5432 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/0.4284, allocations: 16 kB / 0.5432 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009477/0.4293, allocations: 87.88 kB / 0.5433 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/0.4296, allocations: 144.7 kB / 0.5434 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.4297, allocations: 55.92 kB / 0.5435 GB, free: 5.574 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002452/0.4322, allocations: 1.774 MB / 0.5452 GB, free: 3.793 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4322, allocations: 0 / 0.5452 GB, free: 3.793 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001487/0.4337, allocations: 0.6557 MB / 0.5458 GB, free: 3.137 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.1722/0.6058, allocations: 3.668 MB / 0.5494 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00411/0.6099, allocations: 2.451 MB / 0.5518 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6099, allocations: 4.812 kB / 0.5518 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.6122, allocations: 1.898 MB / 0.5537 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.002545/0.6148, allocations: 0.6154 MB / 0.5543 GB, free: 118 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02336/0.6381, allocations: 17.91 MB / 0.5717 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007598/0.6389, allocations: 1.108 MB / 0.5728 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00111/0.64, allocations: 391.1 kB / 0.5732 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008838/0.6409, allocations: 1.191 MB / 0.5744 GB, free: 103.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6409, allocations: 0 / 0.5744 GB, free: 103.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1218/0.7627, allocations: 71.01 MB / 0.6437 GB, free: 33.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.71, allocations: 0 / 0.6437 GB, free: 33.19 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.381176044000313]