Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001816/0.001816, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002358/0.002358, allocations: 210.9 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 207.7 MB / 235.3 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 60.44 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2351, allocations: 49.15 MB / 396.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009728/0.2449, allocations: 11.42 MB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02344/0.2683, allocations: 16.74 MB / 424.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00239/0.2707, allocations: 196.2 kB / 424.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00283/0.2735, allocations: 1.005 MB / 425.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007532/0.281, allocations: 2.286 MB / 428 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00435/0.2854, allocations: 1.358 MB / 429.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01012/0.2955, allocations: 6.324 MB / 435.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.2961, allocations: 253.1 kB / 435.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.2978, allocations: 1.034 MB / 436.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001361/0.2992, allocations: 1.013 MB / 438 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.2994, allocations: 76 kB / 438 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003928/0.3033, allocations: 1.093 MB / 439.1 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003587/0.3037, allocations: 325.7 kB / 439.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.3049, allocations: 0.978 MB / 440.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005354/0.3103, allocations: 3.772 MB / 444.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3103, allocations: 0 / 444.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3103, allocations: 0 / 444.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.732e-05/0.3103, allocations: 0 / 444.2 MB, free: 3.113 MB / 350.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.005572/0.3159, allocations: 3.637 MB / 447.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.316, allocations: 11.98 kB / 447.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000125/0.3161, allocations: 102.5 kB / 447.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.3165, allocations: 401.5 kB / 448.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.3205, allocations: 2.402 MB / 450.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.249e-05/0.3205, allocations: 32.94 kB / 450.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.3206, allocations: 48 kB / 450.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.3222, allocations: 0.7655 MB / 451.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3222, allocations: 0 / 451.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.3222, allocations: 19.98 kB / 451.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.3223, allocations: 16 kB / 451.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.3241, allocations: 0.8592 MB / 452.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00495/0.3291, allocations: 2.783 MB / 455.3 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.3308, allocations: 0.7169 MB / 456 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.3323, allocations: 0.8676 MB / 456.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02727/0.3596, allocations: 13.69 MB / 470.5 MB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.3608, allocations: 0.5957 MB / 471.1 MB, free: 7.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 2.985e-06/0.3608, allocations: 0 / 471.1 MB, free: 7.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01201/0.3728, allocations: 4.536 MB / 475.7 MB, free: 2.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.3729, allocations: 68.41 kB / 475.7 MB, free: 2.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003514/0.3764, allocations: 2.713 MB / 478.4 MB, free: 140 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.116e-05/0.3765, allocations: 41.7 kB / 478.5 MB, free: 92 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.3777, allocations: 1.312 MB / 479.8 MB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.378, allocations: 345.1 kB / 480.1 MB, free: 14.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003618/0.3784, allocations: 242.3 kB / 480.4 MB, free: 14.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3785, allocations: 345.9 kB / 480.7 MB, free: 13.85 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.3798, allocations: 478 kB / 481.2 MB, free: 13.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.3813, allocations: 0.6508 MB / 481.8 MB, free: 12.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/0.384, allocations: 1.13 MB / 483 MB, free: 11.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.384, allocations: 4 kB / 483 MB, free: 11.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004065/0.3881, allocations: 1.831 MB / 484.8 MB, free: 9.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3881, allocations: 11.94 kB / 484.8 MB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000177/0.3883, allocations: 124 kB / 484.9 MB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007208/0.389, allocations: 268.9 kB / 485.2 MB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008684/0.3898, allocations: 195.7 kB / 485.4 MB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.4002, allocations: 13.19 MB / 498.6 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.4016, allocations: 87.89 kB / 498.6 MB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.4018, allocations: 56 kB / 498.7 MB, free: 10.5 MB / 414.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.0008661/0.4026, allocations: 430.2 kB / 499.1 MB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004273/0.403, allocations: 393.5 kB / 499.5 MB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0049/0.4079, allocations: 2.065 MB / 0.4898 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.408, allocations: 12 kB / 0.4898 GB, free: 7.566 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.408, allocations: 4 kB / 0.4898 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.408, allocations: 3.984 kB / 0.4898 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.4101, allocations: 1.406 MB / 0.4912 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001624/0.4102, allocations: 116 kB / 0.4913 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/0.411, allocations: 139.7 kB / 0.4914 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006615/0.4116, allocations: 260.3 kB / 0.4917 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.82e-05/0.4117, allocations: 43.98 kB / 0.4917 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.4218, allocations: 13.19 MB / 0.5046 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4218, allocations: 0 / 0.5046 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005557/0.4273, allocations: 2.426 MB / 0.507 GB, free: 4.719 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.4284, allocations: 435.3 kB / 0.5074 GB, free: 4.289 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003231/0.4287, allocations: 20 kB / 0.5074 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009778/0.4297, allocations: 79.89 kB / 0.5075 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/0.4301, allocations: 148.7 kB / 0.5076 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.4302, allocations: 51.98 kB / 0.5077 GB, free: 3.996 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002594/0.4328, allocations: 1.786 MB / 0.5094 GB, free: 2.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4328, allocations: 0 / 0.5094 GB, free: 2.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001592/0.4344, allocations: 0.6595 MB / 0.5101 GB, free: 1.543 MB / 430.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.006931/0.4413, allocations: 3.682 MB / 0.5137 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004336/0.4456, allocations: 2.444 MB / 0.5161 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4456, allocations: 0 / 0.5161 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/0.4483, allocations: 1.905 MB / 0.5179 GB, free: 9.148 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.4503, allocations: 0.521 MB / 0.5184 GB, free: 8.621 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02929/0.4796, allocations: 18.01 MB / 0.536 GB, free: 6.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.4807, allocations: 1.112 MB / 0.5371 GB, free: 5.078 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001189/0.4819, allocations: 391.4 kB / 0.5375 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001299/0.4832, allocations: 1.206 MB / 0.5387 GB, free: 3.484 MB / 462.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4832, allocations: 0 / 0.5387 GB, free: 3.484 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2894/0.7726, allocations: 71.1 MB / 0.6081 GB, free: 115.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.51/17.28, allocations: 8 kB / 0.6081 GB, free: 115.9 MB / 478.1 MB " [Timeout remaining time 643] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.95188116794452]