Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.006395/0.006395, allocations: 114.5 kB / 21.97 MB, free: 5.219 MB / 14.72 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.001425/0.001425, allocations: 216.3 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 55.92 kB / 348 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2588, allocations: 49.16 MB / 397.1 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0112/0.27, allocations: 13.58 MB / 410.7 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0268/0.2968, allocations: 19.45 MB / 430.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004197/0.301, allocations: 197.3 kB / 430.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003692/0.3047, allocations: 1.103 MB / 431.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008109/0.3128, allocations: 2.293 MB / 433.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004539/0.3173, allocations: 1.407 MB / 435.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.3285, allocations: 6.325 MB / 441.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007364/0.3292, allocations: 261.1 kB / 441.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.3311, allocations: 1.042 MB / 442.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3325, allocations: 1.064 MB / 443.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.3326, allocations: 80 kB / 443.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005277/0.3379, allocations: 1.156 MB / 445.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005418/0.3385, allocations: 317.7 kB / 445.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001888/0.3403, allocations: 1.335 MB / 446.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006948/0.3473, allocations: 3.733 MB / 450.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3473, allocations: 0 / 450.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3473, allocations: 0 / 450.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.714e-05/0.3474, allocations: 0 / 450.5 MB, free: 13.79 MB / 366.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.005653/0.353, allocations: 3.637 MB / 454.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.3531, allocations: 11.98 kB / 454.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.484e-05/0.3531, allocations: 13 kB / 454.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.3532, allocations: 98.5 kB / 454.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004422/0.3536, allocations: 405.5 kB / 454.6 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003716/0.3574, allocations: 2.402 MB / 457 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.3574, allocations: 33 kB / 457 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.3575, allocations: 48 kB / 457.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.359, allocations: 0.7616 MB / 457.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.359, allocations: 0 / 457.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-05/0.3591, allocations: 23.98 kB / 457.9 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.3591, allocations: 23.92 kB / 457.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001841/0.361, allocations: 0.8631 MB / 458.8 MB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005204/0.3662, allocations: 2.93 MB / 461.7 MB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3679, allocations: 0.7207 MB / 462.4 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.3694, allocations: 0.8666 MB / 463.3 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02587/0.3952, allocations: 13.77 MB / 477.1 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001224/0.3965, allocations: 0.6035 MB / 477.7 MB, free: 1.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=96): time 2.746e-06/0.3965, allocations: 0 / 477.7 MB, free: 1.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=99): time 0.01264/0.4091, allocations: 4.536 MB / 482.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.4092, allocations: 60.41 kB / 482.2 MB, free: 13.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/0.4127, allocations: 2.717 MB / 485 MB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.4128, allocations: 41.7 kB / 485 MB, free: 10.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.4139, allocations: 1.304 MB / 486.3 MB, free: 9.195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.4143, allocations: 360.9 kB / 486.7 MB, free: 8.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.4146, allocations: 234.4 kB / 486.9 MB, free: 8.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4148, allocations: 341.9 kB / 487.2 MB, free: 8.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.416, allocations: 482 kB / 487.7 MB, free: 7.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.4175, allocations: 0.6431 MB / 488.3 MB, free: 7.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.4201, allocations: 1.129 MB / 489.5 MB, free: 5.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.4201, allocations: 8 kB / 489.5 MB, free: 5.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004077/0.4242, allocations: 1.831 MB / 491.3 MB, free: 4.016 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4242, allocations: 8 kB / 491.3 MB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001665/0.4244, allocations: 120.5 kB / 491.4 MB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006967/0.4251, allocations: 268.4 kB / 491.7 MB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000869/0.4259, allocations: 199.7 kB / 491.9 MB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009961/0.4359, allocations: 13.23 MB / 0.4933 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.4373, allocations: 83.91 kB / 0.4934 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.4375, allocations: 59.98 kB / 0.4934 GB, free: 4.891 MB / 414.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.0008586/0.4383, allocations: 426.3 kB / 0.4938 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004354/0.4388, allocations: 393.6 kB / 0.4942 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004775/0.4436, allocations: 2.072 MB / 0.4962 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.4436, allocations: 12 kB / 0.4962 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4436, allocations: 4 kB / 0.4962 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.4436, allocations: 3.984 kB / 0.4962 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.4455, allocations: 1.523 MB / 0.4977 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001565/0.4457, allocations: 116 kB / 0.4978 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007022/0.4464, allocations: 135.8 kB / 0.498 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006478/0.447, allocations: 268.3 kB / 0.4982 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.479e-05/0.4471, allocations: 43.98 kB / 0.4983 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009847/0.457, allocations: 13.21 MB / 0.5112 GB, free: 1.438 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.457, allocations: 0 / 0.5112 GB, free: 1.438 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005756/0.4627, allocations: 2.426 MB / 0.5135 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.4639, allocations: 435.3 kB / 0.514 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003263/0.4642, allocations: 20 kB / 0.514 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009384/0.4652, allocations: 79.89 kB / 0.514 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003808/0.4655, allocations: 144.8 kB / 0.5142 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.4657, allocations: 55.91 kB / 0.5142 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002657/0.4683, allocations: 1.786 MB / 0.516 GB, free: 12.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4683, allocations: 0 / 0.516 GB, free: 12.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001935/0.4702, allocations: 0.6596 MB / 0.5166 GB, free: 11.78 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.007129/0.4774, allocations: 3.682 MB / 0.5202 GB, free: 8.039 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004381/0.4818, allocations: 2.444 MB / 0.5226 GB, free: 5.441 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4818, allocations: 0 / 0.5226 GB, free: 5.441 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.4844, allocations: 1.909 MB / 0.5245 GB, free: 3.375 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.4864, allocations: 0.5248 MB / 0.525 GB, free: 2.844 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0309/0.5173, allocations: 18.02 MB / 0.5426 GB, free: 452 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.5185, allocations: 1.666 MB / 0.5442 GB, free: 14.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001146/0.5196, allocations: 391.4 kB / 0.5446 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/0.5209, allocations: 1.202 MB / 0.5458 GB, free: 13.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5209, allocations: 0 / 0.5458 GB, free: 13.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3065/0.8274, allocations: 68.05 MB / 0.6122 GB, free: 109.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.1/18.93, allocations: 4.062 kB / 0.6122 GB, free: 109.6 MB / 478.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 23.021743431978393]