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.0008462/0.0008462, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.0009189/0.0009189, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8642/0.8642, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.373e-06/1.373e-06, allocations: 3.938 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.073e-05, allocations: 4.531 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008083/0.008103, allocations: 11.99 MB / 336.5 MB, free: 3.922 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.02452, allocations: 17.58 MB / 354.1 MB, free: 2.266 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001996/0.02651, allocations: 193.8 kB / 354.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.0288, allocations: 1.036 MB / 355.4 MB, free: 1.031 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005676/0.03448, allocations: 2.405 MB / 357.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003606/0.03808, allocations: 1.445 MB / 359.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006672/0.04476, allocations: 6.706 MB / 365.9 MB, free: 6.43 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005437/0.0453, allocations: 253 kB / 366.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.0469, allocations: 1.531 MB / 367.7 MB, free: 4.617 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007743/0.04767, allocations: 0.7823 MB / 368.5 MB, free: 3.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.04783, allocations: 76 kB / 368.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002415/0.05025, allocations: 1.21 MB / 369.8 MB, free: 2.547 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.05044, allocations: 329.7 kB / 370.1 MB, free: 2.223 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007033/0.05114, allocations: 0.7203 MB / 370.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003662/0.0548, allocations: 3.682 MB / 374.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.05481, allocations: 4 kB / 374.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.05481, allocations: 0 / 374.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001266/0.05494, allocations: 0 / 374.5 MB, free: 13.8 MB / 346.7 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.004109/0.05905, allocations: 3.574 MB / 378.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.05909, allocations: 15.88 kB / 378.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.404e-05/0.05919, allocations: 94.5 kB / 378.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.05951, allocations: 397.5 kB / 378.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.06199, allocations: 2.367 MB / 380.9 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.06202, allocations: 40.98 kB / 381 MB, free: 7.148 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.85e-05/0.06211, allocations: 51.94 kB / 381 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000937/0.06305, allocations: 0.7576 MB / 381.8 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.06306, allocations: 4 kB / 381.8 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.06311, allocations: 24 kB / 381.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.06312, allocations: 19.98 kB / 381.8 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.06417, allocations: 0.8514 MB / 382.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003205/0.06737, allocations: 2.759 MB / 385.4 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.06841, allocations: 0.7208 MB / 386.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/0.06935, allocations: 0.8753 MB / 387 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01493/0.08427, allocations: 13.67 MB / 400.7 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007322/0.08501, allocations: 0.5918 MB / 401.3 MB, free: 2.359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.986e-06/0.08501, allocations: 4 kB / 401.3 MB, free: 2.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006748/0.09176, allocations: 4.509 MB / 405.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.0918, allocations: 72.33 kB / 405.9 MB, free: 13.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002296/0.0941, allocations: 2.7 MB / 408.6 MB, free: 10.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.397e-05/0.09417, allocations: 45.69 kB / 408.6 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007416/0.09492, allocations: 1.312 MB / 409.9 MB, free: 9.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.09511, allocations: 345.1 kB / 410.3 MB, free: 9.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.09534, allocations: 230.4 kB / 410.5 MB, free: 9.039 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.492e-05/0.09544, allocations: 349.9 kB / 410.8 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000703/0.09614, allocations: 477.9 kB / 411.3 MB, free: 8.227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007541/0.0969, allocations: 0.6431 MB / 411.9 MB, free: 7.516 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.09834, allocations: 1.137 MB / 413.1 MB, free: 6.316 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.09834, allocations: 0 / 413.1 MB, free: 6.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002227/0.1006, allocations: 1.835 MB / 414.9 MB, free: 4.441 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.1006, allocations: 8 kB / 414.9 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.793e-05/0.1007, allocations: 116 kB / 415 MB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.1011, allocations: 276.5 kB / 415.3 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.1015, allocations: 195.7 kB / 415.5 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005646/0.1072, allocations: 13.17 MB / 428.7 MB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008215/0.108, allocations: 88.09 kB / 428.7 MB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.865e-05/0.1081, allocations: 56 kB / 428.8 MB, free: 5.379 MB / 394.7 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.0006325/0.1087, allocations: 430.4 kB / 429.2 MB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.109, allocations: 397.5 kB / 429.6 MB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002748/0.1118, allocations: 2.052 MB / 431.7 MB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1118, allocations: 12 kB / 431.7 MB, free: 2.449 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1118, allocations: 8 kB / 431.7 MB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1118, allocations: 3.984 kB / 431.7 MB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.1131, allocations: 1.386 MB / 433.1 MB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.199e-05/0.1132, allocations: 112 kB / 433.2 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.1135, allocations: 139.7 kB / 433.3 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003514/0.1139, allocations: 264.3 kB / 433.6 MB, free: 484 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.1139, allocations: 47.97 kB / 433.6 MB, free: 436 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005297/0.1192, allocations: 13.17 MB / 446.8 MB, free: 2.105 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1192, allocations: 192 / 446.8 MB, free: 2.105 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1359/0.2552, allocations: 2.405 MB / 449.2 MB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.2563, allocations: 434.3 kB / 449.6 MB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.2566, allocations: 21.56 kB / 449.6 MB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.2572, allocations: 81.22 kB / 449.7 MB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.2575, allocations: 141.9 kB / 449.9 MB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.421e-05/0.2576, allocations: 49.53 kB / 449.9 MB, free: 115.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001927/0.2595, allocations: 1.772 MB / 451.7 MB, free: 115.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2595, allocations: 1.125 kB / 451.7 MB, free: 115.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001079/0.2606, allocations: 0.651 MB / 452.3 MB, free: 115.7 MB / 410.7 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.003734/0.2644, allocations: 3.734 MB / 456.1 MB, free: 115.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.2664, allocations: 2.446 MB / 458.5 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2664, allocations: 3.656 kB / 458.5 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.2675, allocations: 1.898 MB / 460.4 MB, free: 111.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.269, allocations: 0.6108 MB / 461 MB, free: 111.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01661/0.2856, allocations: 17.77 MB / 478.8 MB, free: 94.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.2861, allocations: 1.104 MB / 479.9 MB, free: 93.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007493/0.2869, allocations: 390.5 kB / 480.3 MB, free: 92.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005792/0.2874, allocations: 1.199 MB / 481.5 MB, free: 91.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2874, allocations: 0 / 481.5 MB, free: 91.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0819/0.3693, allocations: 70.87 MB / 0.5394 GB, free: 21.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.967/9.336, allocations: 3.609 kB / 0.5394 GB, free: 21.31 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.588613409548998]