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.001678/0.001678, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.00193/0.001931, allocations: 187 kB / 18.67 MB, free: 4.387 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.363/1.363, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001235/0.001235, allocations: 56.3 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08932, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1804/0.2698, allocations: 13.52 MB / 388.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.2935, allocations: 19.37 MB / 407.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003595/0.2971, allocations: 127.2 kB / 407.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003462/0.3007, allocations: 1.101 MB / 408.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009936/0.3106, allocations: 2.273 MB / 411 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00618/0.3168, allocations: 1.39 MB / 412.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.3279, allocations: 6.282 MB / 418.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008132/0.3287, allocations: 430.3 kB / 419.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.3304, allocations: 1.004 MB / 420.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.3316, allocations: 1.06 MB / 421.2 MB, free: 236 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002032/0.3318, allocations: 75.69 kB / 421.3 MB, free: 236 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004579/0.3364, allocations: 1.163 MB / 422.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005301/0.3369, allocations: 319.5 kB / 422.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.339, allocations: 1.334 MB / 424.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006669/0.3457, allocations: 3.733 MB / 427.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.345e-06/0.3457, allocations: 8 kB / 427.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3457, allocations: 0 / 427.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.3458, allocations: 0 / 427.8 MB, free: 10.58 MB / 350.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.006137/0.352, allocations: 3.704 MB / 431.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.352, allocations: 12.03 kB / 431.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.3522, allocations: 94.5 kB / 431.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005375/0.3527, allocations: 401.5 kB / 432 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004092/0.3568, allocations: 2.579 MB / 434.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.3569, allocations: 41 kB / 434.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.357, allocations: 48 kB / 434.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.3586, allocations: 0.7538 MB / 435.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.3586, allocations: 3.938 kB / 435.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.269e-05/0.3587, allocations: 24 kB / 435.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.3587, allocations: 19.98 kB / 435.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.3605, allocations: 0.8553 MB / 436.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/0.3658, allocations: 2.983 MB / 439.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.3676, allocations: 0.791 MB / 440.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.3691, allocations: 0.9603 MB / 441.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03004/0.3992, allocations: 30.12 MB / 471.2 MB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.4004, allocations: 0.5966 MB / 471.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.777e-06/0.4004, allocations: 0 / 471.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.0126/0.413, allocations: 5.297 MB / 477.1 MB, free: 4.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.4131, allocations: 64.41 kB / 477.1 MB, free: 4.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003419/0.4166, allocations: 2.717 MB / 479.9 MB, free: 1.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002148/0.4168, allocations: 41.7 kB / 479.9 MB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.418, allocations: 1.304 MB / 481.2 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.4184, allocations: 356.9 kB / 481.6 MB, free: 188 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.4188, allocations: 238.5 kB / 481.8 MB, free: 15.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4189, allocations: 341.9 kB / 482.1 MB, free: 15.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.4202, allocations: 478 kB / 482.6 MB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.4215, allocations: 0.6509 MB / 483.2 MB, free: 14.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.4241, allocations: 1.126 MB / 484.4 MB, free: 13.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4241, allocations: 0 / 484.4 MB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004107/0.4282, allocations: 1.997 MB / 486.4 MB, free: 11.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.4282, allocations: 11.94 kB / 486.4 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/0.4284, allocations: 116 kB / 486.5 MB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000701/0.4291, allocations: 275.3 kB / 486.8 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008733/0.43, allocations: 199.6 kB / 486.9 MB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008889/0.4389, allocations: 14.25 MB / 0.4894 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.4404, allocations: 95.89 kB / 0.4895 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.4405, allocations: 56 kB / 0.4896 GB, free: 10.75 MB / 430.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.0007781/0.4413, allocations: 429.6 kB / 0.49 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/0.4417, allocations: 389.6 kB / 0.4904 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004689/0.4464, allocations: 2.228 MB / 0.4925 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/0.4464, allocations: 8 kB / 0.4926 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.4464, allocations: 4 kB / 0.4926 GB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4465, allocations: 3.984 kB / 0.4926 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.4482, allocations: 1.547 MB / 0.4941 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001493/0.4483, allocations: 120 kB / 0.4942 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.4491, allocations: 135.8 kB / 0.4943 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006131/0.4497, allocations: 260.3 kB / 0.4946 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.74e-05/0.4498, allocations: 47.98 kB / 0.4946 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008971/0.4588, allocations: 14.25 MB / 0.5085 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4588, allocations: 0 / 0.5085 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005355/0.4642, allocations: 2.569 MB / 0.511 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009572/0.4652, allocations: 0.5102 MB / 0.5115 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003227/0.4655, allocations: 20 kB / 0.5116 GB, free: 2.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4665, allocations: 83.89 kB / 0.5116 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.4669, allocations: 136.8 kB / 0.5118 GB, free: 2.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-05/0.467, allocations: 55.92 kB / 0.5118 GB, free: 2.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00223/0.4692, allocations: 1.778 MB / 0.5136 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4692, allocations: 3.938 kB / 0.5136 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001468/0.4707, allocations: 0.6674 MB / 0.5142 GB, free: 15.85 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.006558/0.4773, allocations: 3.845 MB / 0.518 GB, free: 11.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004361/0.4816, allocations: 2.522 MB / 0.5204 GB, free: 9.238 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4817, allocations: 0 / 0.5204 GB, free: 9.238 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002608/0.4843, allocations: 1.956 MB / 0.5223 GB, free: 7.129 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.4864, allocations: 0.5168 MB / 0.5228 GB, free: 6.605 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02899/0.5154, allocations: 18.34 MB / 0.5407 GB, free: 3.816 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.5166, allocations: 1.666 MB / 0.5424 GB, free: 2.121 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.5178, allocations: 399.3 kB / 0.5428 GB, free: 1.727 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.5191, allocations: 1.198 MB / 0.5439 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5191, allocations: 0 / 0.5439 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2882/0.8073, allocations: 66.91 MB / 0.6093 GB, free: 111.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/17.91, allocations: 15.94 kB / 0.6093 GB, free: 111.4 MB / 478.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