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.001388/0.001388, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001403/0.001403, allocations: 204.3 kB / 20.74 MB, free: 2.34 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.484/1.484, allocations: 230.6 MB / 254.1 MB, free: 15.05 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.001546/0.001546, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1026, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2083/0.3109, allocations: 14.24 MB / 440.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02698/0.3379, allocations: 20.41 MB / 460.9 MB, free: 4.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/0.3411, allocations: 195.9 kB / 461.1 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003876/0.345, allocations: 1.124 MB / 462.3 MB, free: 3.539 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.3555, allocations: 2.313 MB / 464.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00675/0.3622, allocations: 1.446 MB / 466 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.3747, allocations: 6.512 MB / 472.5 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008481/0.3755, allocations: 257.9 kB / 472.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002505/0.378, allocations: 1.136 MB / 473.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.3803, allocations: 1.078 MB / 475 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003079/0.3806, allocations: 79.19 kB / 475.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005607/0.3862, allocations: 1.481 MB / 476.6 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006304/0.3868, allocations: 320.2 kB / 476.9 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.3892, allocations: 1.324 MB / 478.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008057/0.3972, allocations: 3.708 MB / 481.9 MB, free: 8.895 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3972, allocations: 1.375 kB / 481.9 MB, free: 8.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3972, allocations: 0 / 481.9 MB, free: 8.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.264e-05/0.3973, allocations: 0 / 481.9 MB, free: 8.895 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.007232/0.4046, allocations: 3.691 MB / 485.6 MB, free: 5.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.4046, allocations: 8.031 kB / 485.6 MB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001492/0.4047, allocations: 98.5 kB / 485.7 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005892/0.4053, allocations: 397.5 kB / 486.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004476/0.4098, allocations: 2.555 MB / 488.6 MB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.4099, allocations: 36.94 kB / 488.7 MB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.41, allocations: 51.98 kB / 488.7 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.4117, allocations: 0.7577 MB / 489.5 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.4117, allocations: 0 / 489.5 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/0.4118, allocations: 16 kB / 489.5 MB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.418e-05/0.4118, allocations: 19.98 kB / 489.5 MB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.4137, allocations: 0.8514 MB / 490.4 MB, free: 380 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005934/0.4196, allocations: 2.978 MB / 493.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.4214, allocations: 0.718 MB / 494.1 MB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.423, allocations: 0.8627 MB / 494.9 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03385/0.4568, allocations: 30.69 MB / 0.5133 GB, free: 8.789 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.4581, allocations: 0.5957 MB / 0.5139 GB, free: 8.184 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.797e-06/0.4581, allocations: 0 / 0.5139 GB, free: 8.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.0143/0.4724, allocations: 5.27 MB / 0.519 GB, free: 2.668 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.222e-05/0.4725, allocations: 76.38 kB / 0.5191 GB, free: 2.582 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004005/0.4765, allocations: 2.688 MB / 0.5217 GB, free: 15.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.4767, allocations: 45.69 kB / 0.5218 GB, free: 15.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.478, allocations: 1.308 MB / 0.523 GB, free: 14.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005164/0.4785, allocations: 356.9 kB / 0.5234 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004288/0.4789, allocations: 230.4 kB / 0.5236 GB, free: 13.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4791, allocations: 353.9 kB / 0.5239 GB, free: 13.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.4805, allocations: 470.6 kB / 0.5244 GB, free: 13.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.4819, allocations: 0.6509 MB / 0.525 GB, free: 12.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002793/0.4847, allocations: 1.13 MB / 0.5261 GB, free: 11.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4847, allocations: 0 / 0.5261 GB, free: 11.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004743/0.4895, allocations: 1.986 MB / 0.5281 GB, free: 9.152 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.4895, allocations: 8 kB / 0.5281 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001715/0.4897, allocations: 121.4 kB / 0.5282 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007782/0.4905, allocations: 268 kB / 0.5285 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009588/0.4914, allocations: 195.7 kB / 0.5286 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.5027, allocations: 14.25 MB / 0.5425 GB, free: 8.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.5047, allocations: 91.95 kB / 0.5426 GB, free: 8.828 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002131/0.5049, allocations: 56 kB / 0.5427 GB, free: 8.773 MB / 462.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.0009358/0.5059, allocations: 421.7 kB / 0.5431 GB, free: 8.352 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006558/0.5065, allocations: 389.5 kB / 0.5435 GB, free: 7.969 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0055/0.512, allocations: 2.214 MB / 0.5456 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.512, allocations: 12 kB / 0.5456 GB, free: 5.664 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.5121, allocations: 4 kB / 0.5456 GB, free: 5.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.5121, allocations: 3.984 kB / 0.5456 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.515, allocations: 1.543 MB / 0.5472 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001634/0.5151, allocations: 108 kB / 0.5473 GB, free: 3.957 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007765/0.5159, allocations: 139.8 kB / 0.5474 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007401/0.5167, allocations: 272.3 kB / 0.5476 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.5168, allocations: 43.98 kB / 0.5477 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.5278, allocations: 14.25 MB / 0.5616 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5278, allocations: 0 / 0.5616 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/0.5339, allocations: 2.561 MB / 0.5641 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.5352, allocations: 0.5024 MB / 0.5646 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004897/0.5357, allocations: 23.98 kB / 0.5646 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5368, allocations: 83.89 kB / 0.5647 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/0.5372, allocations: 140.8 kB / 0.5648 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.5374, allocations: 51.97 kB / 0.5649 GB, free: 376 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002802/0.5402, allocations: 1.774 MB / 0.5666 GB, free: 14.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5402, allocations: 0 / 0.5666 GB, free: 14.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002151/0.5423, allocations: 0.6557 MB / 0.5673 GB, free: 13.93 MB / 494.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.007598/0.5499, allocations: 3.828 MB / 0.571 GB, free: 10 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004542/0.5545, allocations: 2.444 MB / 0.5734 GB, free: 7.402 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5545, allocations: 4 kB / 0.5734 GB, free: 7.398 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002938/0.5574, allocations: 1.901 MB / 0.5752 GB, free: 5.348 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.5605, allocations: 0.6116 MB / 0.5758 GB, free: 4.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03416/0.5946, allocations: 18.23 MB / 0.5936 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.596, allocations: 1.658 MB / 0.5953 GB, free: 376 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001316/0.5973, allocations: 399.4 kB / 0.5956 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001498/0.5988, allocations: 1.194 MB / 0.5968 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of SimCode: time 1.684e-06/0.5988, allocations: 0 / 0.5968 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3952/0.994, allocations: 66.9 MB / 0.6621 GB, free: 171 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.81/18.8, allocations: 5.188 kB / 0.6621 GB, free: 171 MB / 0.5294 GB " [Timeout remaining time 641] (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: 21.586191525988397]