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.001926/0.001926, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002481/0.002481, allocations: 212.9 kB / 23.74 MB, free: 4.656 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001592/0.001592, allocations: 47.91 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2614, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01602/0.2774, allocations: 14.24 MB / 445.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02785/0.3052, allocations: 20.42 MB / 465.8 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003282/0.3085, allocations: 197.8 kB / 466 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003407/0.3119, allocations: 1.126 MB / 467.1 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007902/0.3198, allocations: 2.343 MB / 469.5 MB, free: 360 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005212/0.3251, allocations: 1.461 MB / 470.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.3364, allocations: 6.529 MB / 477.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007431/0.3372, allocations: 257 kB / 477.7 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002149/0.3393, allocations: 1.14 MB / 478.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.341, allocations: 1.079 MB / 479.9 MB, free: 5.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.3412, allocations: 72 kB / 480 MB, free: 5.754 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004333/0.3455, allocations: 1.487 MB / 481.5 MB, free: 4.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000406/0.3459, allocations: 325.7 kB / 481.8 MB, free: 3.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.3475, allocations: 1.32 MB / 483.1 MB, free: 2.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005833/0.3533, allocations: 3.706 MB / 486.8 MB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.3533, allocations: 0 / 486.8 MB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3533, allocations: 7.875 kB / 486.8 MB, free: 14.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.504e-05/0.3534, allocations: 4 kB / 486.8 MB, free: 14.88 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.006212/0.3596, allocations: 3.61 MB / 490.4 MB, free: 11.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.3597, allocations: 12.02 kB / 490.5 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.3598, allocations: 98.52 kB / 490.5 MB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005217/0.3603, allocations: 393.5 kB / 490.9 MB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004167/0.3645, allocations: 2.378 MB / 493.3 MB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.3645, allocations: 33 kB / 493.3 MB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.3647, allocations: 51.92 kB / 493.4 MB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.3662, allocations: 0.7655 MB / 494.2 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3662, allocations: 0 / 494.2 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.128e-05/0.3663, allocations: 23.94 kB / 494.2 MB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.3663, allocations: 19.98 kB / 494.2 MB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.3682, allocations: 0.8553 MB / 495.1 MB, free: 6.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005639/0.3738, allocations: 2.926 MB / 498 MB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.3756, allocations: 0.7169 MB / 498.7 MB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.3772, allocations: 0.8635 MB / 499.6 MB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/0.4046, allocations: 13.77 MB / 0.5013 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.4058, allocations: 0.5879 MB / 0.5019 GB, free: 3.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.906e-06/0.4058, allocations: 4 kB / 0.5019 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01222/0.418, allocations: 4.521 MB / 0.5063 GB, free: 14.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.4181, allocations: 72.39 kB / 0.5064 GB, free: 14.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003704/0.4218, allocations: 2.7 MB / 0.509 GB, free: 11.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.4219, allocations: 41.7 kB / 0.509 GB, free: 11.72 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.4232, allocations: 1.304 MB / 0.5103 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.4236, allocations: 353 kB / 0.5107 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/0.424, allocations: 234.4 kB / 0.5109 GB, free: 9.832 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.4242, allocations: 349.9 kB / 0.5112 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.4254, allocations: 470 kB / 0.5117 GB, free: 9.027 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.4268, allocations: 0.6509 MB / 0.5123 GB, free: 8.312 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002554/0.4294, allocations: 1.133 MB / 0.5134 GB, free: 7.117 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4294, allocations: 0 / 0.5134 GB, free: 7.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00425/0.4336, allocations: 1.834 MB / 0.5152 GB, free: 5.238 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.4337, allocations: 10.81 kB / 0.5152 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001801/0.4338, allocations: 116 kB / 0.5153 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007416/0.4346, allocations: 272.9 kB / 0.5156 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008671/0.4354, allocations: 195.7 kB / 0.5158 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.4469, allocations: 13.22 MB / 0.5287 GB, free: 6.262 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.4487, allocations: 91.95 kB / 0.5288 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.4488, allocations: 56 kB / 0.5288 GB, free: 6.117 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.0009265/0.4497, allocations: 432.9 kB / 0.5292 GB, free: 5.688 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004757/0.4502, allocations: 397.5 kB / 0.5296 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.4551, allocations: 2.056 MB / 0.5316 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.4551, allocations: 8 kB / 0.5316 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4551, allocations: 7.938 kB / 0.5316 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.4551, allocations: 3.984 kB / 0.5316 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.4572, allocations: 1.511 MB / 0.5331 GB, free: 1.629 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001581/0.4574, allocations: 116 kB / 0.5332 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000704/0.4581, allocations: 135.8 kB / 0.5333 GB, free: 1.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006812/0.4587, allocations: 264.3 kB / 0.5336 GB, free: 1.094 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.694e-05/0.4588, allocations: 43.97 kB / 0.5336 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2194/0.6782, allocations: 13.22 MB / 0.5465 GB, free: 91.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6782, allocations: 1.062 kB / 0.5465 GB, free: 91.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005218/0.6834, allocations: 2.409 MB / 0.5489 GB, free: 91.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.6845, allocations: 438.5 kB / 0.5493 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.6848, allocations: 21.23 kB / 0.5493 GB, free: 91.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00089/0.6857, allocations: 79.75 kB / 0.5494 GB, free: 91.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/0.686, allocations: 145.2 kB / 0.5496 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.311e-05/0.6861, allocations: 53.94 kB / 0.5496 GB, free: 90.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002399/0.6885, allocations: 1.771 MB / 0.5513 GB, free: 90.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6885, allocations: 0 / 0.5513 GB, free: 90.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001683/0.6902, allocations: 0.6561 MB / 0.552 GB, free: 90.29 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.005599/0.6958, allocations: 3.688 MB / 0.5556 GB, free: 88.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.6992, allocations: 2.452 MB / 0.558 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6992, allocations: 0 / 0.558 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.7012, allocations: 1.903 MB / 0.5598 GB, free: 85.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/0.7035, allocations: 0.6188 MB / 0.5604 GB, free: 85.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02328/0.7268, allocations: 17.91 MB / 0.5779 GB, free: 68.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007514/0.7275, allocations: 1.662 MB / 0.5796 GB, free: 66.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.7286, allocations: 391.4 kB / 0.5799 GB, free: 66.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008765/0.7295, allocations: 1.194 MB / 0.5811 GB, free: 65.15 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7295, allocations: 0 / 0.5811 GB, free: 65.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1282/0.8577, allocations: 67.69 MB / 0.6472 GB, free: 13.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.71/20.56, allocations: 8 kB / 0.6472 GB, free: 13.87 MB / 462.1 MB " [Timeout remaining time 639] (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: 23.40538024200214]