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.001008/0.001008, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009582/0.0009582, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8952/0.8952, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.843e-06/1.843e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.163e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008725/0.008747, allocations: 11.99 MB / 336.5 MB, free: 3.855 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01808/0.02682, allocations: 17.58 MB / 354.1 MB, free: 2.203 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00266/0.02948, allocations: 193.8 kB / 354.3 MB, free: 2.012 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.03196, allocations: 1.032 MB / 355.3 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006049/0.03801, allocations: 2.408 MB / 357.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003717/0.04173, allocations: 1.441 MB / 359.1 MB, free: 13.1 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00731/0.04904, allocations: 6.718 MB / 365.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006026/0.04964, allocations: 245 kB / 366.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.05191, allocations: 1.535 MB / 367.6 MB, free: 4.551 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008947/0.0528, allocations: 0.7784 MB / 368.4 MB, free: 3.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.05296, allocations: 80 kB / 368.5 MB, free: 3.691 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002804/0.05576, allocations: 1.213 MB / 369.7 MB, free: 2.477 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.05598, allocations: 325.7 kB / 370 MB, free: 2.156 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008702/0.05685, allocations: 0.7165 MB / 370.7 MB, free: 1.438 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00386/0.06071, allocations: 3.686 MB / 374.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.06071, allocations: 0 / 374.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.06072, allocations: 0 / 374.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.711e-05/0.06075, allocations: 4 kB / 374.4 MB, free: 13.73 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.003436/0.06419, allocations: 3.574 MB / 378 MB, free: 10.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.06424, allocations: 11.98 kB / 378 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.458e-05/0.06434, allocations: 98.5 kB / 378.1 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003119/0.06465, allocations: 401.5 kB / 378.5 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.067, allocations: 2.367 MB / 380.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.06703, allocations: 33 kB / 380.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.06712, allocations: 51.94 kB / 381 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009735/0.06809, allocations: 0.7655 MB / 381.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.0681, allocations: 0 / 381.7 MB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.06815, allocations: 19.98 kB / 381.7 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.06817, allocations: 27.98 kB / 381.8 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.06922, allocations: 0.8514 MB / 382.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003577/0.07279, allocations: 2.755 MB / 385.4 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.07387, allocations: 0.7247 MB / 386.1 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009176/0.07479, allocations: 0.887 MB / 387 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/0.09195, allocations: 13.65 MB / 400.6 MB, free: 2.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008312/0.09278, allocations: 0.6035 MB / 401.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 3.777e-06/0.09278, allocations: 0 / 401.2 MB, free: 2.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.007182/0.09996, allocations: 4.505 MB / 405.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.1, allocations: 76.33 kB / 405.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/0.1024, allocations: 2.707 MB / 408.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.1025, allocations: 41.7 kB / 408.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007634/0.1032, allocations: 1.304 MB / 409.9 MB, free: 9.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.1035, allocations: 349 kB / 410.2 MB, free: 9.203 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002465/0.1037, allocations: 230.4 kB / 410.4 MB, free: 8.973 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.1038, allocations: 345.9 kB / 410.8 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007183/0.1045, allocations: 482 kB / 411.2 MB, free: 8.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007755/0.1053, allocations: 0.6431 MB / 411.9 MB, free: 7.449 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001439/0.1067, allocations: 1.137 MB / 413 MB, free: 6.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1067, allocations: 4 kB / 413 MB, free: 6.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002618/0.1094, allocations: 1.827 MB / 414.9 MB, free: 4.383 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.1094, allocations: 8 kB / 414.9 MB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.774e-05/0.1095, allocations: 128 kB / 415 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/0.1099, allocations: 264.8 kB / 415.2 MB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/0.1104, allocations: 199.7 kB / 415.4 MB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006063/0.1164, allocations: 13.17 MB / 428.6 MB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009851/0.1174, allocations: 87.89 kB / 428.7 MB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.1175, allocations: 56 kB / 428.8 MB, free: 5.316 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.0006767/0.1182, allocations: 426.3 kB / 429.2 MB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003798/0.1186, allocations: 397.5 kB / 429.6 MB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.1215, allocations: 2.06 MB / 431.6 MB, free: 2.391 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.1215, allocations: 8 kB / 431.6 MB, free: 2.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1215, allocations: 4 kB / 431.6 MB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1215, allocations: 7.984 kB / 431.6 MB, free: 2.371 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001405/0.1229, allocations: 1.386 MB / 433 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.413e-05/0.123, allocations: 108 kB / 433.1 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.1233, allocations: 143.7 kB / 433.3 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003733/0.1237, allocations: 260.3 kB / 433.5 MB, free: 420 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.135e-05/0.1238, allocations: 51.97 kB / 433.6 MB, free: 368 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006189/0.13, allocations: 13.17 MB / 446.7 MB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.13, allocations: 0 / 446.7 MB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1588/0.2888, allocations: 2.408 MB / 449.2 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.2899, allocations: 435.8 kB / 449.6 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002814/0.2902, allocations: 21.55 kB / 449.6 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.2908, allocations: 80.81 kB / 449.7 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/0.2912, allocations: 143.4 kB / 449.8 MB, free: 116.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.2913, allocations: 52.33 kB / 449.9 MB, free: 116.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001964/0.2932, allocations: 1.767 MB / 451.6 MB, free: 116.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2932, allocations: 0 / 451.6 MB, free: 116.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001157/0.2944, allocations: 0.6594 MB / 452.3 MB, free: 116.5 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.003666/0.298, allocations: 3.721 MB / 456 MB, free: 115.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.3001, allocations: 2.442 MB / 458.5 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3001, allocations: 3.625 kB / 458.5 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.3012, allocations: 1.901 MB / 460.4 MB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3026, allocations: 0.6149 MB / 461 MB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.3194, allocations: 17.77 MB / 478.7 MB, free: 94.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.32, allocations: 1.1 MB / 479.8 MB, free: 93.78 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007987/0.3208, allocations: 399 kB / 480.2 MB, free: 93.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/0.3214, allocations: 1.192 MB / 481.4 MB, free: 92.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.3214, allocations: 0 / 481.4 MB, free: 92.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0883/0.4097, allocations: 70.82 MB / 0.5393 GB, free: 21.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.397/9.807, allocations: 10.73 kB / 0.5393 GB, free: 21.9 MB / 410.7 MB " [Timeout remaining time 650] (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/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_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: 12.137727702967823]