Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 116.2 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 186.2 kB / 23.72 MB, free: 4.555 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 51.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2682, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01517/0.2833, allocations: 14.25 MB / 436.9 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.3091, allocations: 20.38 MB / 457.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003119/0.3122, allocations: 193.8 kB / 457.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003602/0.3158, allocations: 1.126 MB / 458.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008951/0.3248, allocations: 2.347 MB / 460.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005785/0.3306, allocations: 1.453 MB / 462.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01127/0.3418, allocations: 6.462 MB / 468.8 MB, free: 220 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.3426, allocations: 249 kB / 469.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.3445, allocations: 1.136 MB / 470.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001573/0.3461, allocations: 1.083 MB / 471.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.3463, allocations: 72 kB / 471.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004656/0.351, allocations: 1.487 MB / 472.8 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000491/0.3515, allocations: 317.7 kB / 473.1 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.3532, allocations: 1.331 MB / 474.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0066/0.3598, allocations: 3.698 MB / 478.2 MB, free: 6.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3598, allocations: 4 kB / 478.2 MB, free: 6.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3598, allocations: 4 kB / 478.2 MB, free: 6.773 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.8e-05/0.3599, allocations: 0 / 478.2 MB, free: 6.773 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.006364/0.3663, allocations: 3.602 MB / 481.8 MB, free: 3.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3663, allocations: 8.031 kB / 481.8 MB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001363/0.3664, allocations: 98.5 kB / 481.9 MB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005496/0.367, allocations: 397.5 kB / 482.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004166/0.3712, allocations: 2.39 MB / 484.7 MB, free: 128 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.3712, allocations: 33 kB / 484.7 MB, free: 92 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.3713, allocations: 55.95 kB / 484.8 MB, free: 36 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.3729, allocations: 0.7577 MB / 485.5 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3729, allocations: 0 / 485.5 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.373, allocations: 16 kB / 485.5 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.483e-05/0.373, allocations: 23.98 kB / 485.6 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00183/0.3748, allocations: 0.8592 MB / 486.4 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005509/0.3803, allocations: 2.915 MB / 489.3 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.382, allocations: 0.7246 MB / 490.1 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.3835, allocations: 0.8705 MB / 490.9 MB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02732/0.4109, allocations: 13.72 MB / 0.4928 GB, free: 11.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.4121, allocations: 0.6035 MB / 0.4934 GB, free: 11.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.845e-06/0.4121, allocations: 0 / 0.4934 GB, free: 11.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01274/0.4249, allocations: 4.52 MB / 0.4978 GB, free: 6.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/0.4249, allocations: 68.41 kB / 0.4979 GB, free: 6.414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004047/0.429, allocations: 2.696 MB / 0.5005 GB, free: 3.703 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.4291, allocations: 45.7 kB / 0.5006 GB, free: 3.652 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001255/0.4304, allocations: 1.304 MB / 0.5018 GB, free: 2.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004029/0.4308, allocations: 360.9 kB / 0.5022 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003761/0.4312, allocations: 230.5 kB / 0.5024 GB, free: 1.758 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.4313, allocations: 349.9 kB / 0.5027 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.4326, allocations: 474 kB / 0.5032 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.434, allocations: 0.6509 MB / 0.5038 GB, free: 232 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.4366, allocations: 1.129 MB / 0.5049 GB, free: 15.04 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4366, allocations: 0 / 0.5049 GB, free: 15.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004177/0.4408, allocations: 1.839 MB / 0.5067 GB, free: 13.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.4408, allocations: 12.09 kB / 0.5067 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001792/0.441, allocations: 116 kB / 0.5068 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007519/0.4417, allocations: 264.4 kB / 0.5071 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009131/0.4426, allocations: 199.7 kB / 0.5073 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.4531, allocations: 13.23 MB / 0.5202 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.4545, allocations: 83.91 kB / 0.5203 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.4547, allocations: 64.05 kB / 0.5203 GB, free: 14.04 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.0008643/0.4555, allocations: 429.5 kB / 0.5207 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004902/0.456, allocations: 381.8 kB / 0.5211 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004917/0.4609, allocations: 2.06 MB / 0.5231 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.4609, allocations: 8 kB / 0.5231 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.4609, allocations: 7.938 kB / 0.5231 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.461, allocations: 7.969 kB / 0.5231 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.4632, allocations: 1.518 MB / 0.5246 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001712/0.4634, allocations: 119.9 kB / 0.5247 GB, free: 9.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.4641, allocations: 135.8 kB / 0.5249 GB, free: 9.289 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007094/0.4648, allocations: 264.3 kB / 0.5251 GB, free: 9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.4649, allocations: 43.98 kB / 0.5252 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.4756, allocations: 13.23 MB / 0.5381 GB, free: 10.58 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.4756, allocations: 8.047 kB / 0.5381 GB, free: 10.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/0.4812, allocations: 2.402 MB / 0.5404 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.4822, allocations: 431.3 kB / 0.5408 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003017/0.4825, allocations: 23.98 kB / 0.5409 GB, free: 7.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009282/0.4834, allocations: 79.89 kB / 0.5409 GB, free: 7.594 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.4838, allocations: 148.7 kB / 0.5411 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.4839, allocations: 51.81 kB / 0.5411 GB, free: 7.402 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002543/0.4865, allocations: 1.774 MB / 0.5429 GB, free: 5.621 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4865, allocations: 0 / 0.5429 GB, free: 5.621 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00158/0.488, allocations: 0.6557 MB / 0.5435 GB, free: 4.965 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.006871/0.4949, allocations: 3.672 MB / 0.5471 GB, free: 1.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2119/0.7068, allocations: 2.44 MB / 0.5495 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.7068, allocations: 1.688 kB / 0.5495 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.7094, allocations: 1.912 MB / 0.5513 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/0.7119, allocations: 0.6184 MB / 0.552 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/0.7362, allocations: 17.92 MB / 0.5694 GB, free: 113.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008347/0.737, allocations: 1.662 MB / 0.5711 GB, free: 112 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.7383, allocations: 387.2 kB / 0.5714 GB, free: 111.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00091/0.7392, allocations: 1.194 MB / 0.5726 GB, free: 110.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.7392, allocations: 4 kB / 0.5726 GB, free: 110.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/0.8673, allocations: 67.64 MB / 0.6387 GB, free: 43.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.25/20.11, allocations: 0 / 0.6387 GB, free: 43.22 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.823562762998336]