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.001444/0.001444, allocations: 116.4 kB / 20.43 MB, free: 1.301 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.001682/0.001682, allocations: 207.2 kB / 23.74 MB, free: 4.523 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.482/1.482, allocations: 230.5 MB / 257.4 MB, free: 8.012 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 72.03 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2493, allocations: 53.41 MB / 431.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0158/0.2651, allocations: 14.24 MB / 445.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02632/0.2914, allocations: 20.43 MB / 465.8 MB, free: 4.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.2939, allocations: 185.9 kB / 466 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003491/0.2974, allocations: 1.141 MB / 467.2 MB, free: 2.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008207/0.3056, allocations: 2.339 MB / 469.5 MB, free: 328 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00529/0.3109, allocations: 1.457 MB / 471 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3223, allocations: 6.536 MB / 477.5 MB, free: 8.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007297/0.323, allocations: 257 kB / 477.8 MB, free: 8.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.3248, allocations: 1.136 MB / 478.9 MB, free: 6.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.3263, allocations: 1.087 MB / 480 MB, free: 5.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3265, allocations: 76 kB / 480 MB, free: 5.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004227/0.3307, allocations: 1.483 MB / 481.5 MB, free: 4.227 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004693/0.3312, allocations: 325.7 kB / 481.8 MB, free: 3.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001816/0.333, allocations: 1.316 MB / 483.2 MB, free: 2.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006293/0.3393, allocations: 3.71 MB / 486.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.3393, allocations: 0 / 486.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3393, allocations: 0 / 486.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.494e-05/0.3394, allocations: 0 / 486.9 MB, free: 14.86 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.006101/0.3455, allocations: 3.617 MB / 490.5 MB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.514e-05/0.3456, allocations: 8.031 kB / 490.5 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/0.3457, allocations: 94.52 kB / 490.6 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005842/0.3463, allocations: 405.5 kB / 491 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004035/0.3504, allocations: 2.374 MB / 493.4 MB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.3504, allocations: 33 kB / 493.4 MB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3505, allocations: 51.98 kB / 493.4 MB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.352, allocations: 0.7616 MB / 494.2 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.352, allocations: 0 / 494.2 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.3521, allocations: 23.94 kB / 494.2 MB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.3521, allocations: 19.98 kB / 494.3 MB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.3539, allocations: 0.8592 MB / 495.1 MB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005332/0.3593, allocations: 2.915 MB / 498 MB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.3609, allocations: 0.7246 MB / 498.7 MB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.3624, allocations: 0.8705 MB / 499.6 MB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02722/0.3896, allocations: 13.75 MB / 0.5013 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.3908, allocations: 0.6035 MB / 0.5019 GB, free: 3.117 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.286e-06/0.3908, allocations: 0 / 0.5019 GB, free: 3.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0119/0.4027, allocations: 4.517 MB / 0.5063 GB, free: 14.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.4028, allocations: 68.39 kB / 0.5064 GB, free: 14.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003428/0.4062, allocations: 2.707 MB / 0.5091 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001503/0.4064, allocations: 41.7 kB / 0.5091 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.4076, allocations: 1.311 MB / 0.5104 GB, free: 10.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003721/0.4079, allocations: 349 kB / 0.5107 GB, free: 10.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003718/0.4083, allocations: 234.4 kB / 0.5109 GB, free: 9.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4085, allocations: 345.9 kB / 0.5113 GB, free: 9.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4097, allocations: 478 kB / 0.5117 GB, free: 8.984 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.411, allocations: 0.6505 MB / 0.5123 GB, free: 8.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.4136, allocations: 1.133 MB / 0.5135 GB, free: 7.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4136, allocations: 0 / 0.5135 GB, free: 7.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004153/0.4177, allocations: 1.835 MB / 0.5152 GB, free: 5.195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.4178, allocations: 8 kB / 0.5153 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001842/0.4179, allocations: 120 kB / 0.5154 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007116/0.4186, allocations: 268.8 kB / 0.5156 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008909/0.4195, allocations: 195.7 kB / 0.5158 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.4298, allocations: 13.22 MB / 0.5287 GB, free: 6.223 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.4312, allocations: 91.95 kB / 0.5288 GB, free: 6.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.4314, allocations: 56 kB / 0.5289 GB, free: 6.078 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.0008144/0.4322, allocations: 428.3 kB / 0.5293 GB, free: 5.652 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/0.4326, allocations: 393.5 kB / 0.5296 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004696/0.4373, allocations: 2.06 MB / 0.5317 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.4373, allocations: 8 kB / 0.5317 GB, free: 3.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4373, allocations: 7.938 kB / 0.5317 GB, free: 3.152 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4373, allocations: 3.984 kB / 0.5317 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.4394, allocations: 1.515 MB / 0.5332 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001629/0.4396, allocations: 112 kB / 0.5333 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007141/0.4403, allocations: 135.8 kB / 0.5334 GB, free: 1.344 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006837/0.441, allocations: 268.3 kB / 0.5337 GB, free: 1.051 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.419e-05/0.4411, allocations: 43.98 kB / 0.5337 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1981/0.6392, allocations: 13.21 MB / 0.5466 GB, free: 91.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6392, allocations: 1.281 kB / 0.5466 GB, free: 91.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005026/0.6442, allocations: 2.415 MB / 0.549 GB, free: 90.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009897/0.6452, allocations: 438.9 kB / 0.5494 GB, free: 90.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/0.6455, allocations: 17.02 kB / 0.5494 GB, free: 90.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009076/0.6464, allocations: 79.42 kB / 0.5495 GB, free: 90.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003676/0.6468, allocations: 141.7 kB / 0.5496 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.6469, allocations: 52.17 kB / 0.5496 GB, free: 90.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.6495, allocations: 1.769 MB / 0.5514 GB, free: 90.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6495, allocations: 0 / 0.5514 GB, free: 90.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002/0.6515, allocations: 0.6559 MB / 0.552 GB, free: 90.14 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.005617/0.6571, allocations: 3.676 MB / 0.5556 GB, free: 88.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.6605, allocations: 2.459 MB / 0.558 GB, free: 86.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6605, allocations: 3.875 kB / 0.558 GB, free: 86.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.6625, allocations: 1.894 MB / 0.5599 GB, free: 85.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.665, allocations: 0.6201 MB / 0.5605 GB, free: 85.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02313/0.6881, allocations: 17.92 MB / 0.578 GB, free: 68.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007711/0.6889, allocations: 1.666 MB / 0.5796 GB, free: 66.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001015/0.6899, allocations: 390.7 kB / 0.58 GB, free: 66.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008768/0.6908, allocations: 1.194 MB / 0.5811 GB, free: 64.98 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6908, allocations: 0 / 0.5811 GB, free: 64.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1319/0.8227, allocations: 67.67 MB / 0.6472 GB, free: 13.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.94/19.76, allocations: 3.75 kB / 0.6472 GB, free: 13.63 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.148041058098897]