Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 212.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 377.8 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2563, allocations: 53.42 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01529/0.2716, allocations: 14.24 MB / 445.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02618/0.2978, allocations: 20.43 MB / 465.8 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003503/0.3013, allocations: 189.8 kB / 466 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003751/0.305, allocations: 1.134 MB / 467.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008466/0.3135, allocations: 2.339 MB / 469.5 MB, free: 220 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00623/0.3197, allocations: 1.457 MB / 471 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.332, allocations: 6.544 MB / 477.5 MB, free: 8.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007491/0.3328, allocations: 253 kB / 477.8 MB, free: 7.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0019/0.3347, allocations: 1.132 MB / 478.9 MB, free: 6.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001617/0.3363, allocations: 1.083 MB / 480 MB, free: 5.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.3365, allocations: 80 kB / 480 MB, free: 5.605 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004368/0.3409, allocations: 1.487 MB / 481.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003744/0.3412, allocations: 317.7 kB / 481.8 MB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.3428, allocations: 1.327 MB / 483.2 MB, free: 2.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005822/0.3487, allocations: 3.706 MB / 486.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3487, allocations: 0 / 486.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3487, allocations: 0 / 486.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.524e-05/0.3487, allocations: 0 / 486.9 MB, free: 14.75 MB / 398.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.006048/0.3548, allocations: 3.617 MB / 490.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3548, allocations: 8.031 kB / 490.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.355, allocations: 102.5 kB / 490.6 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005038/0.3555, allocations: 393.5 kB / 491 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004077/0.3595, allocations: 2.374 MB / 493.4 MB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.3596, allocations: 36.98 kB / 493.4 MB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.3597, allocations: 52 kB / 493.4 MB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.3612, allocations: 0.7616 MB / 494.2 MB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3613, allocations: 3.938 kB / 494.2 MB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.09e-05/0.3613, allocations: 20 kB / 494.2 MB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.3614, allocations: 19.98 kB / 494.2 MB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3632, allocations: 0.8592 MB / 495.1 MB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.3686, allocations: 2.919 MB / 498 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.3703, allocations: 0.7285 MB / 498.8 MB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001495/0.3718, allocations: 0.8627 MB / 499.6 MB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02689/0.3987, allocations: 13.76 MB / 0.5013 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001282/0.4, allocations: 0.5996 MB / 0.5019 GB, free: 3.004 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.565e-06/0.4, allocations: 0 / 0.5019 GB, free: 3.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01208/0.4121, allocations: 4.517 MB / 0.5063 GB, free: 14.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.444e-05/0.4122, allocations: 68.34 kB / 0.5064 GB, free: 14.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003615/0.4158, allocations: 2.7 MB / 0.509 GB, free: 11.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.4159, allocations: 41.7 kB / 0.5091 GB, free: 11.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.4171, allocations: 1.308 MB / 0.5104 GB, free: 10.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.4175, allocations: 349 kB / 0.5107 GB, free: 9.926 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003722/0.4178, allocations: 238.4 kB / 0.5109 GB, free: 9.688 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.418, allocations: 345.9 kB / 0.5113 GB, free: 9.344 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.4193, allocations: 478 kB / 0.5117 GB, free: 8.879 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.4207, allocations: 0.647 MB / 0.5123 GB, free: 8.164 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.4233, allocations: 1.133 MB / 0.5134 GB, free: 6.965 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.4233, allocations: 4 kB / 0.5135 GB, free: 6.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0041/0.4274, allocations: 1.831 MB / 0.5152 GB, free: 5.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.4274, allocations: 8 kB / 0.5152 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001808/0.4276, allocations: 120.5 kB / 0.5154 GB, free: 4.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007335/0.4284, allocations: 268.4 kB / 0.5156 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008718/0.4292, allocations: 195.7 kB / 0.5158 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/0.4403, allocations: 13.23 MB / 0.5287 GB, free: 6.109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.4416, allocations: 91.89 kB / 0.5288 GB, free: 6.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.4418, allocations: 56 kB / 0.5289 GB, free: 5.965 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.0008626/0.4426, allocations: 433 kB / 0.5293 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004778/0.4431, allocations: 393.6 kB / 0.5297 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004899/0.448, allocations: 2.052 MB / 0.5317 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.448, allocations: 15.88 kB / 0.5317 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.448, allocations: 8 kB / 0.5317 GB, free: 3.035 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.448, allocations: 3.984 kB / 0.5317 GB, free: 3.031 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.4501, allocations: 1.507 MB / 0.5332 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001644/0.4502, allocations: 120 kB / 0.5333 GB, free: 1.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007033/0.4509, allocations: 131.8 kB / 0.5334 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006703/0.4516, allocations: 260.3 kB / 0.5336 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.645e-05/0.4517, allocations: 47.98 kB / 0.5337 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2097/0.6614, allocations: 13.21 MB / 0.5466 GB, free: 91.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6614, allocations: 3.281 kB / 0.5466 GB, free: 91.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005059/0.6664, allocations: 2.408 MB / 0.5489 GB, free: 90.87 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009544/0.6674, allocations: 435.1 kB / 0.5494 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000308/0.6677, allocations: 21.16 kB / 0.5494 GB, free: 90.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009235/0.6686, allocations: 87.91 kB / 0.5495 GB, free: 90.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/0.669, allocations: 144 kB / 0.5496 GB, free: 90.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.24e-05/0.6691, allocations: 43.77 kB / 0.5496 GB, free: 90.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.6715, allocations: 1.773 MB / 0.5514 GB, free: 90.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6715, allocations: 0 / 0.5514 GB, free: 90.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001577/0.6731, allocations: 0.6658 MB / 0.552 GB, free: 90.07 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.005654/0.6787, allocations: 3.673 MB / 0.5556 GB, free: 88.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003443/0.6822, allocations: 2.451 MB / 0.558 GB, free: 86.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6822, allocations: 5.562 kB / 0.558 GB, free: 86.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.6843, allocations: 1.904 MB / 0.5599 GB, free: 85.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.6868, allocations: 0.6178 MB / 0.5605 GB, free: 85.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02178/0.7086, allocations: 17.92 MB / 0.578 GB, free: 68.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007273/0.7093, allocations: 1.669 MB / 0.5796 GB, free: 66.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.7103, allocations: 383.4 kB / 0.58 GB, free: 66.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008713/0.7112, allocations: 1.191 MB / 0.5811 GB, free: 64.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7112, allocations: 4 kB / 0.5811 GB, free: 64.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1254/0.8366, allocations: 67.67 MB / 0.6472 GB, free: 13.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.52/20.36, allocations: 0.75 kB / 0.6472 GB, free: 13.58 MB / 462.1 MB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.083136753000872]