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.001902/0.001902, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.002128/0.002128, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001644/0.001644, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0874/0.08905, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1807/0.2698, allocations: 13.53 MB / 388.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02432/0.2942, allocations: 19.37 MB / 407.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/0.2974, allocations: 125.4 kB / 407.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003914/0.3014, allocations: 1.091 MB / 408.7 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.3115, allocations: 2.254 MB / 411 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005838/0.3174, allocations: 1.38 MB / 412.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.3294, allocations: 6.28 MB / 418.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000965/0.3304, allocations: 434.2 kB / 419.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00198/0.3324, allocations: 0.9768 MB / 420.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.3342, allocations: 1.061 MB / 421.1 MB, free: 304 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.3345, allocations: 74.84 kB / 421.2 MB, free: 304 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004821/0.3394, allocations: 1.156 MB / 422.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005787/0.34, allocations: 332.6 kB / 422.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002483/0.3425, allocations: 1.33 MB / 424 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008271/0.3508, allocations: 3.725 MB / 427.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.3508, allocations: 0 / 427.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3508, allocations: 0.6562 kB / 427.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.3509, allocations: 0 / 427.7 MB, free: 10.7 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.007059/0.358, allocations: 3.72 MB / 431.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.3581, allocations: 8.031 kB / 431.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.3582, allocations: 94.52 kB / 431.6 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005886/0.3588, allocations: 409.5 kB / 432 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004355/0.3632, allocations: 2.575 MB / 434.5 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.3633, allocations: 36.94 kB / 434.6 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.3634, allocations: 51.98 kB / 434.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.3651, allocations: 0.7577 MB / 435.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.3651, allocations: 0 / 435.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.069e-05/0.3652, allocations: 16 kB / 435.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.3652, allocations: 23.97 kB / 435.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.3672, allocations: 0.8592 MB / 436.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00591/0.3731, allocations: 2.983 MB / 439.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001932/0.3751, allocations: 0.7988 MB / 440 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/0.3767, allocations: 0.9487 MB / 441 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03435/0.4111, allocations: 30.12 MB / 471.1 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.4124, allocations: 0.6004 MB / 471.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.176e-06/0.4125, allocations: 0 / 471.7 MB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01368/0.4261, allocations: 5.293 MB / 477 MB, free: 4.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.4263, allocations: 76.33 kB / 477.1 MB, free: 4.719 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003805/0.4301, allocations: 2.709 MB / 479.8 MB, free: 1.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.4303, allocations: 41.7 kB / 479.8 MB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001382/0.4317, allocations: 1.3 MB / 481.1 MB, free: 0.6445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004362/0.4321, allocations: 357 kB / 481.5 MB, free: 300 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004213/0.4326, allocations: 234.4 kB / 481.7 MB, free: 60 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.4328, allocations: 345.9 kB / 482.1 MB, free: 15.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.4342, allocations: 478 kB / 482.5 MB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.4357, allocations: 0.647 MB / 483.2 MB, free: 14.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002842/0.4386, allocations: 1.129 MB / 484.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4386, allocations: 4 kB / 484.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004598/0.4432, allocations: 1.993 MB / 486.3 MB, free: 11.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.4433, allocations: 11.94 kB / 486.3 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/0.4434, allocations: 116.5 kB / 486.4 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007925/0.4442, allocations: 283 kB / 486.7 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/0.4452, allocations: 199.7 kB / 486.9 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.4572, allocations: 14.25 MB / 0.4894 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.4587, allocations: 83.91 kB / 0.4895 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.4589, allocations: 56 kB / 0.4895 GB, free: 10.86 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.0009368/0.4598, allocations: 429.6 kB / 0.4899 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000587/0.4604, allocations: 393.6 kB / 0.4903 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00535/0.4658, allocations: 2.223 MB / 0.4925 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.4658, allocations: 12 kB / 0.4925 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.4659, allocations: 4 kB / 0.4925 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.4659, allocations: 3.984 kB / 0.4925 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.4683, allocations: 1.547 MB / 0.494 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001743/0.4685, allocations: 116 kB / 0.4941 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007565/0.4692, allocations: 139.8 kB / 0.4943 GB, free: 5.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.47, allocations: 264.3 kB / 0.4945 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.4701, allocations: 43.98 kB / 0.4945 GB, free: 5.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/0.4817, allocations: 14.25 MB / 0.5085 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4817, allocations: 0 / 0.5085 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006165/0.4879, allocations: 2.577 MB / 0.511 GB, free: 3.234 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.489, allocations: 0.5063 MB / 0.5115 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003697/0.4894, allocations: 16 kB / 0.5115 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.4904, allocations: 79.89 kB / 0.5116 GB, free: 2.613 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003953/0.4908, allocations: 140.8 kB / 0.5117 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.4909, allocations: 51.98 kB / 0.5117 GB, free: 2.426 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.4937, allocations: 1.782 MB / 0.5135 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4937, allocations: 0 / 0.5135 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001841/0.4956, allocations: 0.6634 MB / 0.5141 GB, free: 15.97 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.007629/0.5032, allocations: 3.852 MB / 0.5179 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004786/0.508, allocations: 2.518 MB / 0.5204 GB, free: 9.352 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5081, allocations: 0 / 0.5204 GB, free: 9.352 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003059/0.5111, allocations: 1.964 MB / 0.5223 GB, free: 7.234 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.5136, allocations: 0.5138 MB / 0.5228 GB, free: 6.715 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03394/0.5475, allocations: 18.34 MB / 0.5407 GB, free: 3.922 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001409/0.549, allocations: 1.666 MB / 0.5423 GB, free: 2.227 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.5502, allocations: 395.3 kB / 0.5427 GB, free: 1.836 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/0.5517, allocations: 1.202 MB / 0.5439 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5517, allocations: 0 / 0.5439 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2892/0.8409, allocations: 66.92 MB / 0.6092 GB, free: 110.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.42/18.26, allocations: 11.88 kB / 0.6092 GB, free: 110.3 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