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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 107.3 kB / 18.35 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 192 kB / 19.29 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 51.94 kB / 282.1 MB, free: 2.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0809/0.08209, allocations: 46.62 MB / 328.7 MB, free: 3.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01174/0.09386, allocations: 13.54 MB / 342.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.1195, allocations: 19.36 MB / 361.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.1221, allocations: 126.9 kB / 361.7 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003713/0.1259, allocations: 1.092 MB / 362.8 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.1364, allocations: 2.258 MB / 365.1 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006027/0.1424, allocations: 1.381 MB / 366.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0139/0.1564, allocations: 6.277 MB / 372.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.1575, allocations: 428.5 kB / 373.2 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001756/0.1593, allocations: 0.9797 MB / 374.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.1604, allocations: 1.056 MB / 375.2 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001525/0.1606, allocations: 80 kB / 375.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.164, allocations: 1.159 MB / 376.4 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003433/0.1644, allocations: 333.6 kB / 376.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.1657, allocations: 1.327 MB / 378.1 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1465/0.3122, allocations: 3.703 MB / 381.8 MB, free: 25.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3122, allocations: 1.375 kB / 381.8 MB, free: 25.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3123, allocations: 0 / 381.8 MB, free: 25.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.803e-05/0.3123, allocations: 0.75 kB / 381.8 MB, free: 25.35 MB / 318.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.005371/0.3177, allocations: 3.582 MB / 385.4 MB, free: 23.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3178, allocations: 8.281 kB / 385.4 MB, free: 23.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004488/0.3182, allocations: 384.4 kB / 385.8 MB, free: 23.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003817/0.322, allocations: 2.538 MB / 388.3 MB, free: 22.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.3221, allocations: 40.03 kB / 388.3 MB, free: 22.37 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.3222, allocations: 49.86 kB / 388.4 MB, free: 22.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.3237, allocations: 0.7543 MB / 389.2 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.3237, allocations: 2.297 kB / 389.2 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-05/0.3238, allocations: 20.5 kB / 389.2 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.3238, allocations: 18.95 kB / 389.2 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.3255, allocations: 0.861 MB / 390.1 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.3304, allocations: 2.976 MB / 393 MB, free: 21.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.3321, allocations: 0.7939 MB / 393.8 MB, free: 21.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.3335, allocations: 0.9543 MB / 394.8 MB, free: 21.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02627/0.3597, allocations: 30.13 MB / 424.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.361, allocations: 0.595 MB / 425.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 3.437e-06/0.361, allocations: 0 / 425.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.01205/0.373, allocations: 5.228 MB / 430.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.3731, allocations: 65.39 kB / 430.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003786/0.3769, allocations: 2.717 MB / 433.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.377, allocations: 41.7 kB / 433.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3781, allocations: 1.299 MB / 434.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.3785, allocations: 338.6 kB / 435.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004268/0.3789, allocations: 238.2 kB / 435.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.379, allocations: 345.9 kB / 435.8 MB, free: 188 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.3803, allocations: 478 kB / 436.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.3816, allocations: 0.6431 MB / 436.9 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.3841, allocations: 1.137 MB / 438 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.3841, allocations: 4 kB / 438 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004095/0.3882, allocations: 1.975 MB / 440 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3883, allocations: 11.53 kB / 440 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/0.3884, allocations: 124 kB / 440.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000702/0.3891, allocations: 264.9 kB / 440.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008778/0.39, allocations: 197.5 kB / 440.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009424/0.3995, allocations: 14.25 MB / 454.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/0.4015, allocations: 85.97 kB / 454.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/0.4018, allocations: 59.98 kB / 455 MB, free: 11.52 MB / 366.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.0009996/0.4028, allocations: 427.5 kB / 455.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007098/0.4035, allocations: 374.9 kB / 455.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0049/0.4084, allocations: 2.22 MB / 458 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4085, allocations: 8 kB / 458 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.4085, allocations: 5.859 kB / 458 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.4085, allocations: 3.984 kB / 458 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/0.4109, allocations: 1.55 MB / 459.5 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001546/0.4111, allocations: 120 kB / 459.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.4118, allocations: 135.5 kB / 459.8 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006351/0.4125, allocations: 264.1 kB / 460 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.4126, allocations: 47.92 kB / 460.1 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009552/0.4222, allocations: 14.24 MB / 474.3 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.4222, allocations: 7.984 kB / 474.3 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005355/0.4276, allocations: 2.546 MB / 476.9 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/0.4289, allocations: 0.4925 MB / 477.4 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005869/0.4295, allocations: 16 kB / 477.4 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.4307, allocations: 83.89 kB / 477.5 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003624/0.4311, allocations: 140.8 kB / 477.6 MB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.4312, allocations: 47.98 kB / 477.7 MB, free: 3.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002698/0.4339, allocations: 1.781 MB / 479.4 MB, free: 1.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4339, allocations: 0 / 479.4 MB, free: 1.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4356, allocations: 0.6639 MB / 480.1 MB, free: 0.8359 MB / 382.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.00122/0.4369, allocations: 0.8062 MB / 480.9 MB, free: 180 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004034/0.4409, allocations: 2.519 MB / 483.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4409, allocations: 192 / 483.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002551/0.4435, allocations: 1.957 MB / 485.4 MB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.4458, allocations: 0.5234 MB / 485.9 MB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.4536, allocations: 4.69 MB / 490.6 MB, free: 6.215 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001567/0.4552, allocations: 1.662 MB / 492.3 MB, free: 4.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00137/0.4566, allocations: 391.4 kB / 492.6 MB, free: 4.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004054/0.457, allocations: 167.4 kB / 492.8 MB, free: 3.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.457, allocations: 0 / 492.8 MB, free: 3.98 MB / 398.1 MB Notification: Performance of Templates: time 0.06591/0.5229, allocations: 37.13 MB / 0.5175 GB, free: 14.98 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) 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) Reference file matches