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.001691/0.001691, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001467/0.001467, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.395/1.395, allocations: 230.6 MB / 258.3 MB, free: 8.016 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 47.92 kB / 378.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2541, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01452/0.2686, allocations: 14.24 MB / 446.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.2939, allocations: 20.43 MB / 466.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002758/0.2966, allocations: 185.9 kB / 466.8 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003334/0.3, allocations: 1.138 MB / 467.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007563/0.3075, allocations: 2.335 MB / 470.2 MB, free: 368 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004722/0.3122, allocations: 1.457 MB / 471.7 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.3232, allocations: 6.54 MB / 478.2 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006615/0.3239, allocations: 249 kB / 478.5 MB, free: 8.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3256, allocations: 1.136 MB / 479.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001778/0.3274, allocations: 1.087 MB / 480.7 MB, free: 5.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002742/0.3277, allocations: 79.94 kB / 480.8 MB, free: 5.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004156/0.3319, allocations: 1.483 MB / 482.3 MB, free: 4.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005063/0.3324, allocations: 321.7 kB / 482.6 MB, free: 3.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.3341, allocations: 1.316 MB / 483.9 MB, free: 2.625 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006738/0.3408, allocations: 3.71 MB / 487.6 MB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3409, allocations: 4 kB / 487.6 MB, free: 14.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3409, allocations: 0 / 487.6 MB, free: 14.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.666e-05/0.3409, allocations: 0 / 487.6 MB, free: 14.89 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.005593/0.3465, allocations: 3.613 MB / 491.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3466, allocations: 12.03 kB / 491.2 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.46e-05/0.3466, allocations: 13 kB / 491.2 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001249/0.3467, allocations: 94.5 kB / 491.3 MB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004863/0.3472, allocations: 401.5 kB / 491.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004072/0.3513, allocations: 2.378 MB / 494.1 MB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.3513, allocations: 40.97 kB / 494.1 MB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.3515, allocations: 48 kB / 494.2 MB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.353, allocations: 0.7577 MB / 495 MB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3531, allocations: 0 / 495 MB, free: 7.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.3531, allocations: 27.94 kB / 495 MB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.3532, allocations: 23.92 kB / 495 MB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.355, allocations: 0.8553 MB / 495.9 MB, free: 6.465 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005376/0.3604, allocations: 2.922 MB / 498.8 MB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.3621, allocations: 0.7169 MB / 499.5 MB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.3636, allocations: 0.8674 MB / 0.4886 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02576/0.3893, allocations: 13.76 MB / 0.5021 GB, free: 3.754 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.3906, allocations: 0.6034 MB / 0.5027 GB, free: 3.145 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.585e-06/0.3906, allocations: 0 / 0.5027 GB, free: 3.145 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01204/0.4026, allocations: 4.517 MB / 0.5071 GB, free: 14.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.4027, allocations: 68.41 kB / 0.5071 GB, free: 14.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.4062, allocations: 2.707 MB / 0.5098 GB, free: 11.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4064, allocations: 41.7 kB / 0.5098 GB, free: 11.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.4076, allocations: 1.304 MB / 0.5111 GB, free: 10.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003382/0.4079, allocations: 349.1 kB / 0.5114 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003723/0.4083, allocations: 234.4 kB / 0.5117 GB, free: 9.824 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.4084, allocations: 345.9 kB / 0.512 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.4097, allocations: 478 kB / 0.5124 GB, free: 9.012 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.4111, allocations: 0.6496 MB / 0.5131 GB, free: 8.305 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.4137, allocations: 1.133 MB / 0.5142 GB, free: 7.109 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4137, allocations: 0 / 0.5142 GB, free: 7.109 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004109/0.4178, allocations: 1.835 MB / 0.516 GB, free: 5.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4178, allocations: 8 kB / 0.516 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/0.418, allocations: 120 kB / 0.5161 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006844/0.4187, allocations: 260.7 kB / 0.5163 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008584/0.4195, allocations: 199.7 kB / 0.5165 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009943/0.4295, allocations: 13.23 MB / 0.5294 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.4309, allocations: 91.95 kB / 0.5295 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.4311, allocations: 56 kB / 0.5296 GB, free: 6.113 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.0008772/0.432, allocations: 438.1 kB / 0.53 GB, free: 5.676 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005491/0.4326, allocations: 385.6 kB / 0.5304 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004853/0.4374, allocations: 2.064 MB / 0.5324 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4374, allocations: 8 kB / 0.5324 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4374, allocations: 7.938 kB / 0.5324 GB, free: 3.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.4374, allocations: 3.984 kB / 0.5324 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.4396, allocations: 1.511 MB / 0.5339 GB, free: 1.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001522/0.4397, allocations: 116 kB / 0.534 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007038/0.4404, allocations: 135.8 kB / 0.5341 GB, free: 1.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006316/0.4411, allocations: 264.3 kB / 0.5344 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.64e-05/0.4412, allocations: 47.98 kB / 0.5344 GB, free: 1.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1937/0.6348, allocations: 13.21 MB / 0.5473 GB, free: 91.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.6348, allocations: 0.7031 kB / 0.5473 GB, free: 91.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005154/0.64, allocations: 2.41 MB / 0.5497 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008236/0.6408, allocations: 440.1 kB / 0.5501 GB, free: 91.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002963/0.6411, allocations: 20.98 kB / 0.5501 GB, free: 91.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009135/0.642, allocations: 82.59 kB / 0.5502 GB, free: 91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003826/0.6424, allocations: 135.4 kB / 0.5503 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.6425, allocations: 52.08 kB / 0.5504 GB, free: 90.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002288/0.6448, allocations: 1.771 MB / 0.5521 GB, free: 90.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6448, allocations: 0 / 0.5521 GB, free: 90.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001467/0.6463, allocations: 0.6597 MB / 0.5527 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.005596/0.6518, allocations: 3.689 MB / 0.5564 GB, free: 88.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003493/0.6553, allocations: 2.456 MB / 0.5587 GB, free: 87.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.6553, allocations: 0 / 0.5587 GB, free: 87.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.6574, allocations: 1.9 MB / 0.5606 GB, free: 85.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.6597, allocations: 0.6185 MB / 0.5612 GB, free: 85.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02435/0.6841, allocations: 17.92 MB / 0.5787 GB, free: 68.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007151/0.6848, allocations: 1.666 MB / 0.5803 GB, free: 66.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.6858, allocations: 391.4 kB / 0.5807 GB, free: 66.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008584/0.6866, allocations: 1.194 MB / 0.5819 GB, free: 65.11 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6867, allocations: 0 / 0.5819 GB, free: 65.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/0.8064, allocations: 67.71 MB / 0.648 GB, free: 13.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18/18.81, allocations: 12.27 kB / 0.648 GB, free: 13.8 MB / 462.1 MB " [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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 22.943549685005564]