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.0009976/0.0009974, allocations: 90.95 kB / 16.65 MB, free: 6.598 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.001177/0.001177, allocations: 180.7 kB / 17.56 MB, free: 6.203 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.466/1.466, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000286/0.0002861, allocations: 8 kB / 301.5 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.42 MB / 351.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01525/0.1258, allocations: 13.52 MB / 365.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2515/0.3773, allocations: 20.21 MB / 385.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003061/0.3804, allocations: 68.19 kB / 385.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004387/0.3848, allocations: 0.996 MB / 386.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01088/0.3957, allocations: 1.917 MB / 388.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006698/0.4024, allocations: 1.197 MB / 389.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01073/0.4132, allocations: 6.307 MB / 396.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007003/0.4139, allocations: 416.2 kB / 396.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.4158, allocations: 1.017 MB / 397.6 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.4169, allocations: 1.048 MB / 398.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.4171, allocations: 43.25 kB / 398.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004856/0.422, allocations: 1.458 MB / 400.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.4223, allocations: 291.4 kB / 400.4 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.4235, allocations: 1.303 MB / 401.7 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003846/0.4274, allocations: 3.535 MB / 405.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4274, allocations: 0 / 405.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4274, allocations: 3.938 kB / 405.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.4274, allocations: 0 / 405.3 MB, free: 15.8 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.004336/0.4318, allocations: 3.131 MB / 408.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.4318, allocations: 12.03 kB / 408.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.432, allocations: 98.5 kB / 408.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003496/0.4323, allocations: 379.4 kB / 408.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/0.4356, allocations: 2.54 MB / 411.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.4356, allocations: 37 kB / 411.4 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.4358, allocations: 51.94 kB / 411.5 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.4372, allocations: 0.7889 MB / 412.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.4372, allocations: 0.625 kB / 412.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-05/0.4373, allocations: 27.98 kB / 412.3 MB, free: 8.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.4373, allocations: 19.98 kB / 412.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001771/0.4391, allocations: 0.9178 MB / 413.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004522/0.4436, allocations: 3.01 MB / 416.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.4454, allocations: 0.8609 MB / 417.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.4469, allocations: 0.98 MB / 418.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02871/0.4756, allocations: 30.1 MB / 448.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.4769, allocations: 0.6347 MB / 448.8 MB, free: 12 kB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.677e-06/0.477, allocations: 0 / 448.8 MB, free: 12 kB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01309/0.4901, allocations: 5.704 MB / 454.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.4901, allocations: 64.41 kB / 454.6 MB, free: 9.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/0.4942, allocations: 2.696 MB / 457.3 MB, free: 7.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.596e-05/0.4943, allocations: 41.7 kB / 457.3 MB, free: 7.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4954, allocations: 1.303 MB / 458.6 MB, free: 5.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/0.4958, allocations: 332.5 kB / 459 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.4959, allocations: 85.66 kB / 459 MB, free: 5.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.496, allocations: 341.9 kB / 459.4 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.4974, allocations: 0.5293 MB / 459.9 MB, free: 4.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.4988, allocations: 0.7095 MB / 460.6 MB, free: 3.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002726/0.5015, allocations: 1.266 MB / 461.9 MB, free: 2.527 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.5016, allocations: 4 kB / 461.9 MB, free: 2.523 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004289/0.5059, allocations: 2.1 MB / 464 MB, free: 352 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.5059, allocations: 8 kB / 464 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/0.506, allocations: 120 kB / 464.1 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007098/0.5068, allocations: 276.8 kB / 464.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009106/0.5077, allocations: 223.7 kB / 464.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008964/0.5167, allocations: 13.26 MB / 477.9 MB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/0.5188, allocations: 120 kB / 478 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003128/0.5191, allocations: 56 kB / 478 MB, free: 0.9492 MB / 382.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.00122/0.5203, allocations: 437.4 kB / 478.5 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007297/0.5211, allocations: 371.5 kB / 478.8 MB, free: 148 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00566/0.5267, allocations: 2.343 MB / 481.2 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.5268, allocations: 8 kB / 481.2 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.5268, allocations: 7.938 kB / 481.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.5268, allocations: 3.984 kB / 481.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.5293, allocations: 1.541 MB / 482.7 MB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001485/0.5295, allocations: 119.9 kB / 482.8 MB, free: 12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007659/0.5302, allocations: 171.8 kB / 483 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006441/0.5309, allocations: 264.3 kB / 483.3 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.531, allocations: 43.98 kB / 483.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008876/0.5399, allocations: 13.25 MB / 496.6 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5399, allocations: 0 / 496.6 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005971/0.5459, allocations: 2.741 MB / 499.3 MB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.5471, allocations: 492.4 kB / 499.8 MB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006756/0.5478, allocations: 23.98 kB / 499.8 MB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.5492, allocations: 115.9 kB / 499.9 MB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/0.5496, allocations: 132.8 kB / 0.4883 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.5497, allocations: 55.92 kB / 0.4884 GB, free: 9.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002901/0.5526, allocations: 1.774 MB / 0.4901 GB, free: 7.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5527, allocations: 0 / 0.4901 GB, free: 7.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001976/0.5546, allocations: 0.6483 MB / 0.4907 GB, free: 6.844 MB / 414.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.00742/0.5621, allocations: 4.016 MB / 0.4947 GB, free: 2.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004636/0.5667, allocations: 2.647 MB / 0.4973 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5668, allocations: 0 / 0.4973 GB, free: 15.95 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.5695, allocations: 2.023 MB / 0.4992 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00366/0.5732, allocations: 0.5926 MB / 0.4998 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05279/0.626, allocations: 23.57 MB / 0.5228 GB, free: 3.668 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.6274, allocations: 1.654 MB / 0.5244 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.6291, allocations: 399.3 kB / 0.5248 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/0.6305, allocations: 1.191 MB / 0.526 GB, free: 408 kB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6305, allocations: 0 / 0.526 GB, free: 408 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.164/2.794, allocations: 63.65 MB / 0.5882 GB, free: 105.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000277/2.794, allocations: 210.5 kB / 0.5884 GB, free: 105.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.149/7.943, allocations: 4.062 kB / 0.5884 GB, free: 105.3 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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