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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 100.7 kB / 17.58 MB, free: 5.41 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.001794/0.001795, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.327/1.327, allocations: 205.1 MB / 224.4 MB, free: 12.28 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.001185/0.001186, allocations: 52.12 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07605/0.07725, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01154/0.08882, allocations: 13.53 MB / 340.9 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.1087, allocations: 19.37 MB / 360.3 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.1102, allocations: 59.5 kB / 360.3 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002479/0.1128, allocations: 1.097 MB / 361.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006136/0.1189, allocations: 2.254 MB / 363.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003771/0.1227, allocations: 1.389 MB / 365.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008814/0.1316, allocations: 6.254 MB / 371.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006399/0.1322, allocations: 436.5 kB / 371.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.1334, allocations: 0.9602 MB / 372.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.1345, allocations: 1.056 MB / 373.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.1347, allocations: 79.94 kB / 373.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003374/0.1381, allocations: 1.152 MB / 375 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003339/0.1384, allocations: 329.7 kB / 375.3 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.1397, allocations: 1.339 MB / 376.7 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.139/0.2787, allocations: 3.68 MB / 380.3 MB, free: 24.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.2788, allocations: 2.406 kB / 380.3 MB, free: 24.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2788, allocations: 0 / 380.3 MB, free: 24.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001463/0.279, allocations: 0 / 380.3 MB, free: 24.75 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.005671/0.2846, allocations: 3.579 MB / 383.9 MB, free: 22.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.2847, allocations: 12.5 kB / 383.9 MB, free: 22.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.2849, allocations: 99.12 kB / 384 MB, free: 22.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005297/0.2854, allocations: 383.6 kB / 384.4 MB, free: 22.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003709/0.2891, allocations: 2.557 MB / 387 MB, free: 21.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.2892, allocations: 35.05 kB / 387 MB, free: 21.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.2893, allocations: 53.81 kB / 387 MB, free: 21.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.2908, allocations: 0.7577 MB / 387.8 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.2908, allocations: 0 / 387.8 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.291, allocations: 19.61 kB / 387.8 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.291, allocations: 22 kB / 387.8 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.2927, allocations: 0.8559 MB / 388.7 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004496/0.2972, allocations: 2.983 MB / 391.7 MB, free: 21.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.2989, allocations: 0.7883 MB / 392.5 MB, free: 21.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.3004, allocations: 0.9593 MB / 393.4 MB, free: 21.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/0.3233, allocations: 30.13 MB / 423.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/0.3246, allocations: 0.5949 MB / 424.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 3.136e-06/0.3246, allocations: 0 / 424.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.01261/0.3372, allocations: 5.234 MB / 429.4 MB, free: 5.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.3373, allocations: 75.59 kB / 429.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003051/0.3403, allocations: 2.714 MB / 432.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.912e-05/0.3404, allocations: 37.7 kB / 432.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.3414, allocations: 1.302 MB / 433.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.3417, allocations: 337 kB / 433.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.3421, allocations: 234.3 kB / 434.1 MB, free: 416 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3422, allocations: 341.9 kB / 434.4 MB, free: 68 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.3435, allocations: 482 kB / 434.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.3449, allocations: 0.6462 MB / 435.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00258/0.3475, allocations: 1.131 MB / 436.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3475, allocations: 0 / 436.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003915/0.3514, allocations: 1.984 MB / 438.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3515, allocations: 4 kB / 438.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/0.3516, allocations: 127 kB / 438.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006726/0.3523, allocations: 267.7 kB / 439 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.3532, allocations: 193 kB / 439.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/0.3619, allocations: 14.25 MB / 453.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.3635, allocations: 89.61 kB / 453.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.3636, allocations: 63.98 kB / 453.6 MB, free: 11.39 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.0007795/0.3644, allocations: 424 kB / 454 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004056/0.3648, allocations: 371.5 kB / 454.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005089/0.3699, allocations: 2.229 MB / 456.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.37, allocations: 12 kB / 456.6 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.37, allocations: 4 kB / 456.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.37, allocations: 11.98 kB / 456.7 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.3719, allocations: 1.545 MB / 458.2 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001525/0.372, allocations: 120 kB / 458.3 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/0.3728, allocations: 139.4 kB / 458.5 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006288/0.3734, allocations: 255.6 kB / 458.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.751e-05/0.3735, allocations: 47.92 kB / 458.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/0.3837, allocations: 14.24 MB / 473 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3838, allocations: 0 / 473 MB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005677/0.3895, allocations: 2.549 MB / 475.5 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.3906, allocations: 0.4888 MB / 476 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003619/0.391, allocations: 16 kB / 476 MB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009894/0.392, allocations: 79.89 kB / 476.1 MB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003489/0.3923, allocations: 147.8 kB / 476.3 MB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.3924, allocations: 50.17 kB / 476.3 MB, free: 3.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002296/0.3947, allocations: 1.778 MB / 478.1 MB, free: 1.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3948, allocations: 4 kB / 478.1 MB, free: 1.367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001522/0.3963, allocations: 0.66 MB / 478.8 MB, free: 0.707 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.006432/0.4027, allocations: 3.829 MB / 482.6 MB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.407, allocations: 2.537 MB / 485.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.407, allocations: 0 / 485.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.4095, allocations: 1.958 MB / 487.1 MB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.4113, allocations: 0.5191 MB / 487.6 MB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02968/0.441, allocations: 22.58 MB / 0.4982 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001081/0.4421, allocations: 1.666 MB / 0.4999 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.4436, allocations: 395.4 kB / 0.5002 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.4448, allocations: 1.202 MB / 0.5014 GB, free: 12.02 MB / 430.1 MB Notification: Performance of SimCode: time 2.345e-06/0.4448, allocations: 4 kB / 0.5014 GB, free: 12.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2854/0.7302, allocations: 66.21 MB / 0.5661 GB, free: 145.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.74, allocations: 18.3 kB / 0.5661 GB, free: 145.7 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/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