Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 189.9 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 43.94 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2513, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01466/0.2659, allocations: 14.25 MB / 436.9 MB, free: 332 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02613/0.2921, allocations: 20.38 MB / 457.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.2942, allocations: 197.8 kB / 457.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002807/0.297, allocations: 1.13 MB / 458.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006927/0.304, allocations: 2.339 MB / 460.9 MB, free: 8.184 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.3082, allocations: 1.453 MB / 462.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.3183, allocations: 6.458 MB / 468.8 MB, free: 256 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005701/0.3189, allocations: 253.1 kB / 469.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.3205, allocations: 1.136 MB / 470.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.3219, allocations: 1.087 MB / 471.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.322, allocations: 72 kB / 471.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00387/0.3259, allocations: 1.479 MB / 472.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003398/0.3262, allocations: 325.7 kB / 473.2 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001388/0.3276, allocations: 1.324 MB / 474.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004898/0.3325, allocations: 3.702 MB / 478.2 MB, free: 6.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3325, allocations: 0 / 478.2 MB, free: 6.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3325, allocations: 4 kB / 478.2 MB, free: 6.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.105e-05/0.3326, allocations: 0 / 478.2 MB, free: 6.809 MB / 382.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.005349/0.3379, allocations: 3.609 MB / 481.8 MB, free: 3.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3379, allocations: 8.031 kB / 481.8 MB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.3381, allocations: 98.5 kB / 481.9 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/0.3385, allocations: 393.5 kB / 482.3 MB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003797/0.3423, allocations: 2.39 MB / 484.7 MB, free: 164 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.3423, allocations: 33 kB / 484.7 MB, free: 128 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3424, allocations: 47.95 kB / 484.7 MB, free: 80 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.344, allocations: 0.7655 MB / 485.5 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.344, allocations: 3.938 kB / 485.5 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.3441, allocations: 19.98 kB / 485.5 MB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3441, allocations: 19.98 kB / 485.6 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.3459, allocations: 0.8553 MB / 486.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005287/0.3511, allocations: 2.922 MB / 489.3 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.3529, allocations: 0.7247 MB / 490.1 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.3543, allocations: 0.8589 MB / 490.9 MB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02656/0.3809, allocations: 13.73 MB / 0.4928 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.3821, allocations: 0.5997 MB / 0.4934 GB, free: 11.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.565e-06/0.3821, allocations: 0 / 0.4934 GB, free: 11.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0119/0.394, allocations: 4.525 MB / 0.4978 GB, free: 6.516 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.394, allocations: 68.39 kB / 0.4979 GB, free: 6.438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003343/0.3974, allocations: 2.692 MB / 0.5005 GB, free: 3.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.908e-05/0.3975, allocations: 49.69 kB / 0.5006 GB, free: 3.676 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.3987, allocations: 1.304 MB / 0.5018 GB, free: 2.367 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000337/0.3991, allocations: 353 kB / 0.5022 GB, free: 2.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/0.3994, allocations: 234.4 kB / 0.5024 GB, free: 1.785 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3996, allocations: 349.9 kB / 0.5027 GB, free: 1.438 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.4008, allocations: 474 kB / 0.5032 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.4022, allocations: 0.6509 MB / 0.5038 GB, free: 260 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00255/0.4047, allocations: 1.126 MB / 0.5049 GB, free: 15.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.4047, allocations: 3.984 kB / 0.5049 GB, free: 15.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00406/0.4088, allocations: 1.838 MB / 0.5067 GB, free: 13.18 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.4088, allocations: 8.531 kB / 0.5067 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00017/0.409, allocations: 116 kB / 0.5068 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007565/0.4097, allocations: 272.3 kB / 0.5071 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.4108, allocations: 199.7 kB / 0.5073 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.4211, allocations: 13.22 MB / 0.5202 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.4225, allocations: 87.89 kB / 0.5203 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.4226, allocations: 56 kB / 0.5203 GB, free: 14.07 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.0008529/0.4235, allocations: 429.6 kB / 0.5207 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004441/0.4239, allocations: 385.8 kB / 0.5211 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004826/0.4287, allocations: 2.06 MB / 0.5231 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.4288, allocations: 8 kB / 0.5231 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.4288, allocations: 8 kB / 0.5231 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4288, allocations: 3.984 kB / 0.5231 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.431, allocations: 1.522 MB / 0.5246 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001845/0.4312, allocations: 116 kB / 0.5247 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007087/0.4319, allocations: 135.7 kB / 0.5249 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006911/0.4326, allocations: 264.3 kB / 0.5251 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.4327, allocations: 51.97 kB / 0.5252 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/0.4436, allocations: 13.22 MB / 0.5381 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4436, allocations: 0 / 0.5381 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005796/0.4494, allocations: 2.414 MB / 0.5404 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.4505, allocations: 435.3 kB / 0.5409 GB, free: 7.723 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005201/0.451, allocations: 20 kB / 0.5409 GB, free: 7.703 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.4522, allocations: 75.89 kB / 0.5409 GB, free: 7.629 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/0.4525, allocations: 148.7 kB / 0.5411 GB, free: 7.484 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.4527, allocations: 51.98 kB / 0.5411 GB, free: 7.434 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.4557, allocations: 1.774 MB / 0.5429 GB, free: 5.652 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4557, allocations: 0 / 0.5429 GB, free: 5.652 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001719/0.4575, allocations: 0.6518 MB / 0.5435 GB, free: 5 MB / 462.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.007087/0.4645, allocations: 3.678 MB / 0.5471 GB, free: 1.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1975/0.662, allocations: 2.441 MB / 0.5495 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.662, allocations: 0.5938 kB / 0.5495 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002588/0.6646, allocations: 1.907 MB / 0.5513 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002538/0.6672, allocations: 0.6197 MB / 0.5519 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02229/0.6895, allocations: 17.9 MB / 0.5694 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.6902, allocations: 1.666 MB / 0.5711 GB, free: 113 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001177/0.6914, allocations: 391.2 kB / 0.5714 GB, free: 112.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009001/0.6923, allocations: 1.194 MB / 0.5726 GB, free: 111.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6923, allocations: 0 / 0.5726 GB, free: 111.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1579/0.8502, allocations: 67.64 MB / 0.6387 GB, free: 44.26 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.87/19.72, allocations: 14.91 kB / 0.6387 GB, free: 44.25 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 23.018358301138505]