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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 108.8 kB / 17.05 MB, free: 6.059 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.00104/0.00104, allocations: 195 kB / 17.99 MB, free: 5.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2755, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01443/0.29, allocations: 14.19 MB / 414.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02947/0.3195, allocations: 20.3 MB / 434.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002828/0.3224, allocations: 126.9 kB / 434.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003407/0.3258, allocations: 1.119 MB / 436 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008711/0.3346, allocations: 2.317 MB / 438.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005877/0.3405, allocations: 1.443 MB / 439.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01107/0.3516, allocations: 6.418 MB / 446.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.3527, allocations: 432.5 kB / 446.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.3547, allocations: 1.093 MB / 447.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.3567, allocations: 1.079 MB / 448.7 MB, free: 8.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004651/0.3571, allocations: 76 kB / 448.8 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00569/0.3628, allocations: 1.483 MB / 450.3 MB, free: 6.504 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005536/0.3634, allocations: 325.7 kB / 450.6 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00208/0.3655, allocations: 1.316 MB / 451.9 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.3718, allocations: 3.706 MB / 455.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3719, allocations: 0 / 455.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3719, allocations: 0 / 455.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001339/0.372, allocations: 0 / 455.6 MB, free: 1.137 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.00586/0.3779, allocations: 3.681 MB / 459.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3779, allocations: 16.03 kB / 459.3 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.378, allocations: 98.5 kB / 459.4 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004088/0.3785, allocations: 397.5 kB / 459.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00359/0.3821, allocations: 2.551 MB / 462.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.3821, allocations: 36.98 kB / 462.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.3822, allocations: 47.95 kB / 462.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.3837, allocations: 0.7655 MB / 463.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3837, allocations: 0 / 463.2 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.972e-05/0.3838, allocations: 16 kB / 463.2 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.137e-05/0.3839, allocations: 23.98 kB / 463.2 MB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.3856, allocations: 0.8514 MB / 464.1 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004918/0.3905, allocations: 2.97 MB / 467.1 MB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.3923, allocations: 0.7911 MB / 467.9 MB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.3938, allocations: 0.9565 MB / 468.8 MB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0314/0.4252, allocations: 30.07 MB / 498.9 MB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.4264, allocations: 0.5919 MB / 499.5 MB, free: 0.9141 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.226e-06/0.4265, allocations: 0 / 499.5 MB, free: 0.9141 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01219/0.4387, allocations: 5.282 MB / 0.4929 GB, free: 11.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.4388, allocations: 68.39 kB / 0.493 GB, free: 11.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003213/0.442, allocations: 2.696 MB / 0.4956 GB, free: 8.594 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.4421, allocations: 41.7 kB / 0.4957 GB, free: 8.547 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.4432, allocations: 1.308 MB / 0.4969 GB, free: 7.234 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/0.4435, allocations: 357 kB / 0.4973 GB, free: 6.883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003605/0.4439, allocations: 234.5 kB / 0.4975 GB, free: 6.645 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.4441, allocations: 341.9 kB / 0.4978 GB, free: 6.305 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.4453, allocations: 482 kB / 0.4983 GB, free: 5.832 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.4466, allocations: 0.647 MB / 0.4989 GB, free: 5.125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.4492, allocations: 1.126 MB / 0.5 GB, free: 3.938 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.4492, allocations: 4 kB / 0.5 GB, free: 3.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004013/0.4532, allocations: 1.997 MB / 0.502 GB, free: 1.859 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.4532, allocations: 7.938 kB / 0.502 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001755/0.4534, allocations: 124 kB / 0.5021 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006928/0.4541, allocations: 276.8 kB / 0.5024 GB, free: 1.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008851/0.455, allocations: 187.7 kB / 0.5025 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00981/0.4648, allocations: 14.25 MB / 0.5165 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.4665, allocations: 91.95 kB / 0.5165 GB, free: 1.508 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.4666, allocations: 56 kB / 0.5166 GB, free: 1.453 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.0008937/0.4675, allocations: 427 kB / 0.517 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004875/0.468, allocations: 393.5 kB / 0.5174 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004765/0.4728, allocations: 2.211 MB / 0.5195 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4728, allocations: 12 kB / 0.5196 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4728, allocations: 4 kB / 0.5196 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.4728, allocations: 3.984 kB / 0.5196 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00194/0.4748, allocations: 1.55 MB / 0.5211 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001484/0.4749, allocations: 112 kB / 0.5212 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007091/0.4757, allocations: 135.8 kB / 0.5213 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006239/0.4763, allocations: 264.3 kB / 0.5216 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.783e-05/0.4764, allocations: 43.98 kB / 0.5216 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2146/0.691, allocations: 14.24 MB / 0.5355 GB, free: 131.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.691, allocations: 0.5312 kB / 0.5355 GB, free: 131.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005655/0.6967, allocations: 2.565 MB / 0.538 GB, free: 131 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008663/0.6976, allocations: 0.5082 MB / 0.5385 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/0.6979, allocations: 21.91 kB / 0.5385 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009637/0.6988, allocations: 83.45 kB / 0.5386 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003047/0.6991, allocations: 140.7 kB / 0.5388 GB, free: 130.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.039e-05/0.6992, allocations: 50.83 kB / 0.5388 GB, free: 130.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001851/0.7011, allocations: 1.772 MB / 0.5405 GB, free: 130.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7011, allocations: 0 / 0.5405 GB, free: 130.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001332/0.7024, allocations: 0.6531 MB / 0.5412 GB, free: 130.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.005842/0.7083, allocations: 3.835 MB / 0.5449 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.7118, allocations: 2.513 MB / 0.5474 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.7118, allocations: 0 / 0.5474 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.7139, allocations: 1.964 MB / 0.5493 GB, free: 125.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/0.7162, allocations: 0.616 MB / 0.5499 GB, free: 125.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02315/0.7394, allocations: 18.24 MB / 0.5677 GB, free: 107.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007376/0.7402, allocations: 1.658 MB / 0.5693 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001023/0.7412, allocations: 386.4 kB / 0.5697 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008586/0.7421, allocations: 1.194 MB / 0.5708 GB, free: 104.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7421, allocations: 4 kB / 0.5709 GB, free: 104.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1014/0.8435, allocations: 66.54 MB / 0.6358 GB, free: 38.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.16/18, allocations: 8.562 kB / 0.6358 GB, free: 38.22 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/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) Reference file matches