Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001716/0.001716, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002447/0.002447, allocations: 217 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 63.89 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.267, allocations: 53.41 MB / 432 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01475/0.2817, allocations: 14.24 MB / 446.2 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0262/0.3079, allocations: 20.43 MB / 466.6 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003116/0.311, allocations: 189.8 kB / 466.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003555/0.3146, allocations: 1.126 MB / 467.9 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009892/0.3245, allocations: 2.351 MB / 470.3 MB, free: 228 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005893/0.3304, allocations: 1.461 MB / 471.7 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01386/0.3442, allocations: 6.54 MB / 478.3 MB, free: 8.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009645/0.3452, allocations: 249 kB / 478.5 MB, free: 7.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.3479, allocations: 1.14 MB / 479.7 MB, free: 6.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001793/0.3497, allocations: 1.087 MB / 480.8 MB, free: 5.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001998/0.3499, allocations: 76 kB / 480.8 MB, free: 5.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004867/0.3547, allocations: 1.479 MB / 482.3 MB, free: 4.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003948/0.3551, allocations: 321.7 kB / 482.6 MB, free: 3.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00149/0.3566, allocations: 1.327 MB / 484 MB, free: 2.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005978/0.3626, allocations: 3.706 MB / 487.7 MB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3626, allocations: 0 / 487.7 MB, free: 14.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3626, allocations: 0 / 487.7 MB, free: 14.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.266e-05/0.3627, allocations: 0 / 487.7 MB, free: 14.75 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.006018/0.3687, allocations: 3.613 MB / 491.3 MB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3687, allocations: 12.03 kB / 491.3 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.822e-05/0.3688, allocations: 17 kB / 491.3 MB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001253/0.3689, allocations: 94.5 kB / 491.4 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005026/0.3694, allocations: 401.5 kB / 491.8 MB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004003/0.3734, allocations: 2.378 MB / 494.2 MB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.672e-05/0.3734, allocations: 33 kB / 494.2 MB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.3736, allocations: 52 kB / 494.2 MB, free: 8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.3751, allocations: 0.7577 MB / 495 MB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3751, allocations: 0 / 495 MB, free: 7.238 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.3752, allocations: 23.98 kB / 495 MB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.3752, allocations: 19.94 kB / 495 MB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.3771, allocations: 0.8592 MB / 495.9 MB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005399/0.3825, allocations: 2.915 MB / 498.8 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.3842, allocations: 0.7246 MB / 499.5 MB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.3857, allocations: 0.8666 MB / 0.4887 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02643/0.4121, allocations: 13.76 MB / 0.5021 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001295/0.4134, allocations: 0.6035 MB / 0.5027 GB, free: 3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.677e-06/0.4134, allocations: 3.938 kB / 0.5027 GB, free: 2.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01252/0.426, allocations: 4.509 MB / 0.5071 GB, free: 14.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/0.426, allocations: 68.31 kB / 0.5072 GB, free: 14.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003707/0.4297, allocations: 2.696 MB / 0.5098 GB, free: 11.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.4299, allocations: 53.64 kB / 0.5099 GB, free: 11.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.4312, allocations: 1.3 MB / 0.5111 GB, free: 10.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004039/0.4316, allocations: 353 kB / 0.5115 GB, free: 9.922 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003882/0.432, allocations: 234.4 kB / 0.5117 GB, free: 9.688 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4321, allocations: 349.9 kB / 0.512 GB, free: 9.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.4334, allocations: 478 kB / 0.5125 GB, free: 8.871 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.4349, allocations: 0.6509 MB / 0.5131 GB, free: 8.156 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.4375, allocations: 1.133 MB / 0.5142 GB, free: 6.957 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.4375, allocations: 0 / 0.5142 GB, free: 6.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004244/0.4417, allocations: 1.835 MB / 0.516 GB, free: 5.082 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.4418, allocations: 12 kB / 0.516 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/0.4419, allocations: 116 kB / 0.5161 GB, free: 4.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007272/0.4427, allocations: 260.4 kB / 0.5164 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008952/0.4436, allocations: 199.7 kB / 0.5166 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.454, allocations: 13.23 MB / 0.5295 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.4556, allocations: 83.91 kB / 0.5296 GB, free: 6.023 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.4557, allocations: 64.05 kB / 0.5296 GB, free: 5.961 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.0009165/0.4566, allocations: 429 kB / 0.5301 GB, free: 5.535 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005191/0.4572, allocations: 385.6 kB / 0.5304 GB, free: 5.156 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004875/0.462, allocations: 2.056 MB / 0.5324 GB, free: 3.059 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.462, allocations: 8 kB / 0.5324 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.462, allocations: 7.984 kB / 0.5324 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4621, allocations: 11.86 kB / 0.5325 GB, free: 3.031 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.4643, allocations: 1.503 MB / 0.5339 GB, free: 1.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001606/0.4645, allocations: 120 kB / 0.534 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.4652, allocations: 135.8 kB / 0.5342 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006746/0.4659, allocations: 264.3 kB / 0.5344 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.466, allocations: 47.98 kB / 0.5345 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2385/0.7045, allocations: 13.22 MB / 0.5474 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.7045, allocations: 2.844 kB / 0.5474 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006286/0.7108, allocations: 2.412 MB / 0.5497 GB, free: 90.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/0.7122, allocations: 437.2 kB / 0.5501 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005034/0.7127, allocations: 17.11 kB / 0.5502 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.7138, allocations: 85.09 kB / 0.5502 GB, free: 90.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004486/0.7142, allocations: 139.4 kB / 0.5504 GB, free: 90.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.7143, allocations: 48 kB / 0.5504 GB, free: 90.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002939/0.7172, allocations: 1.776 MB / 0.5522 GB, free: 90.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7172, allocations: 1.375 kB / 0.5522 GB, free: 90.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002036/0.7193, allocations: 0.6559 MB / 0.5528 GB, free: 90.1 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.005955/0.7252, allocations: 3.674 MB / 0.5564 GB, free: 88.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003594/0.7288, allocations: 2.457 MB / 0.5588 GB, free: 86.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7288, allocations: 0 / 0.5588 GB, free: 86.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.7309, allocations: 1.909 MB / 0.5607 GB, free: 85.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.7334, allocations: 0.6099 MB / 0.5612 GB, free: 85.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02311/0.7565, allocations: 17.93 MB / 0.5788 GB, free: 68.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007999/0.7573, allocations: 1.658 MB / 0.5804 GB, free: 66.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001128/0.7584, allocations: 395.3 kB / 0.5807 GB, free: 66.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.7595, allocations: 1.191 MB / 0.5819 GB, free: 64.93 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.7595, allocations: 4 kB / 0.5819 GB, free: 64.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1304/0.8898, allocations: 67.7 MB / 0.648 GB, free: 13.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.11/20, allocations: 4.812 kB / 0.648 GB, free: 13.56 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 24.27625644899672]