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.001302/0.001302, allocations: 107.6 kB / 21.18 MB, free: 452 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.001501/0.001501, allocations: 214.7 kB / 24.47 MB, free: 3.777 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.371/1.371, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.001821/0.001821, allocations: 55.86 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2407, allocations: 49.16 MB / 396.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00984/0.2505, allocations: 11.41 MB / 407.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02441/0.2749, allocations: 16.75 MB / 424.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003356/0.2783, allocations: 193.8 kB / 424.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003468/0.2818, allocations: 1.001 MB / 425.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008563/0.2903, allocations: 2.281 MB / 428 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005582/0.2959, allocations: 1.362 MB / 429.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01247/0.3084, allocations: 6.326 MB / 435.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006836/0.3091, allocations: 253.1 kB / 435.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001865/0.3109, allocations: 1.038 MB / 436.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001536/0.3125, allocations: 1.005 MB / 437.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002126/0.3127, allocations: 76 kB / 438 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.3165, allocations: 1.097 MB / 439.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000527/0.317, allocations: 325.7 kB / 439.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0019/0.3189, allocations: 0.978 MB / 440.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008061/0.327, allocations: 3.768 MB / 444.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.327, allocations: 0 / 444.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.327, allocations: 0 / 444.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.18e-05/0.3271, allocations: 0 / 444.2 MB, free: 3.098 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.006077/0.3332, allocations: 3.637 MB / 447.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.3332, allocations: 11.98 kB / 447.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001365/0.3333, allocations: 106.5 kB / 447.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005059/0.3338, allocations: 401.5 kB / 448.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004317/0.3382, allocations: 2.394 MB / 450.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.3382, allocations: 36.92 kB / 450.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.3383, allocations: 48 kB / 450.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.34, allocations: 0.7655 MB / 451.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.34, allocations: 0 / 451.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.3401, allocations: 16 kB / 451.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.3401, allocations: 19.98 kB / 451.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.342, allocations: 0.8592 MB / 452.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005834/0.3478, allocations: 2.786 MB / 455.3 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.3497, allocations: 0.7207 MB / 456 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.3513, allocations: 0.8636 MB / 456.8 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0283/0.3796, allocations: 13.69 MB / 470.5 MB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.3809, allocations: 0.6035 MB / 471.1 MB, free: 7.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 3.567e-06/0.3809, allocations: 0 / 471.1 MB, free: 7.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01265/0.3935, allocations: 4.528 MB / 475.7 MB, free: 2.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.3936, allocations: 68.39 kB / 475.7 MB, free: 2.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003663/0.3973, allocations: 2.717 MB / 478.4 MB, free: 116 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001539/0.3974, allocations: 45.7 kB / 478.5 MB, free: 64 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.3987, allocations: 1.304 MB / 479.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003899/0.3991, allocations: 353 kB / 480.1 MB, free: 14.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004598/0.3996, allocations: 238.4 kB / 480.4 MB, free: 14.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.3997, allocations: 345.9 kB / 480.7 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.4011, allocations: 473.9 kB / 481.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.4027, allocations: 0.6509 MB / 481.8 MB, free: 12.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.4055, allocations: 1.137 MB / 483 MB, free: 11.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.4055, allocations: 0 / 483 MB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00445/0.41, allocations: 1.835 MB / 484.8 MB, free: 9.566 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.41, allocations: 11.94 kB / 484.8 MB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/0.4102, allocations: 120 kB / 484.9 MB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007404/0.4109, allocations: 264.8 kB / 485.2 MB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008978/0.4118, allocations: 191.7 kB / 485.4 MB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.4226, allocations: 13.19 MB / 498.6 MB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.4241, allocations: 91.95 kB / 498.6 MB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001338/0.4242, allocations: 56 kB / 498.7 MB, free: 10.48 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.0008452/0.4251, allocations: 430.2 kB / 499.1 MB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004577/0.4255, allocations: 389.6 kB / 499.5 MB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005033/0.4306, allocations: 2.068 MB / 0.4898 GB, free: 7.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.4306, allocations: 8 kB / 0.4898 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4306, allocations: 8 kB / 0.4898 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4306, allocations: 7.984 kB / 0.4898 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.4325, allocations: 1.402 MB / 0.4912 GB, free: 6.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001715/0.4327, allocations: 120 kB / 0.4913 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007227/0.4334, allocations: 135.8 kB / 0.4914 GB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006701/0.4341, allocations: 264.3 kB / 0.4917 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.665e-05/0.4342, allocations: 43.98 kB / 0.4917 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.4449, allocations: 13.19 MB / 0.5046 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4449, allocations: 0 / 0.5046 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005846/0.4508, allocations: 2.415 MB / 0.507 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.452, allocations: 439.3 kB / 0.5074 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.4523, allocations: 20 kB / 0.5074 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.4533, allocations: 79.89 kB / 0.5075 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000382/0.4537, allocations: 148.7 kB / 0.5076 GB, free: 4.035 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4538, allocations: 47.98 kB / 0.5077 GB, free: 3.988 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002585/0.4564, allocations: 1.786 MB / 0.5094 GB, free: 2.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4564, allocations: 4 kB / 0.5094 GB, free: 2.191 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001623/0.458, allocations: 0.6595 MB / 0.5101 GB, free: 1.531 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.007131/0.4652, allocations: 3.69 MB / 0.5137 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004413/0.4696, allocations: 2.444 MB / 0.5161 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4696, allocations: 0 / 0.5161 GB, free: 11.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002854/0.4724, allocations: 1.902 MB / 0.5179 GB, free: 9.129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.4745, allocations: 0.5245 MB / 0.5184 GB, free: 8.598 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0317/0.5062, allocations: 18 MB / 0.536 GB, free: 6.211 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.5074, allocations: 1.108 MB / 0.5371 GB, free: 5.066 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001259/0.5086, allocations: 391.4 kB / 0.5375 GB, free: 4.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/0.51, allocations: 1.202 MB / 0.5386 GB, free: 3.477 MB / 462.1 MB Notification: Performance of SimCode: time 1.472e-06/0.51, allocations: 3.938 kB / 0.5386 GB, free: 3.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2906/0.8006, allocations: 71.1 MB / 0.6081 GB, free: 115.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/17.11, allocations: 3.938 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.463211989030242]