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.001125/0.001124, allocations: 116.2 kB / 17.28 MB, free: 6.195 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.001245/0.001245, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.79/1.79, allocations: 205.1 MB / 224.1 MB, free: 12.42 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.001299/0.0013, allocations: 43.94 kB / 280.2 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1252, allocations: 46.63 MB / 326.9 MB, free: 4.715 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01449/0.1398, allocations: 13.42 MB / 340.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.1645, allocations: 19.13 MB / 359.4 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.1682, allocations: 63.5 kB / 359.5 MB, free: 3.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003653/0.172, allocations: 0.9544 MB / 360.4 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009621/0.1816, allocations: 1.946 MB / 362.4 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00589/0.1875, allocations: 1.203 MB / 363.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01184/0.1994, allocations: 6.343 MB / 369.9 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.2004, allocations: 436.5 kB / 370.4 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.2023, allocations: 0.968 MB / 371.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001198/0.2035, allocations: 1.056 MB / 372.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002008/0.2037, allocations: 76 kB / 372.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004992/0.2087, allocations: 1.156 MB / 373.6 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.2092, allocations: 329.6 kB / 373.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.2108, allocations: 1.335 MB / 375.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006522/0.2173, allocations: 3.67 MB / 378.9 MB, free: 416 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2174, allocations: 0 / 378.9 MB, free: 416 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2174, allocations: 0 / 378.9 MB, free: 416 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.411e-05/0.2175, allocations: 0 / 378.9 MB, free: 416 kB / 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.251/0.4685, allocations: 3.589 MB / 382.5 MB, free: 53.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.708e-05/0.4686, allocations: 9.25 kB / 382.5 MB, free: 53.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001882/0.4688, allocations: 97.59 kB / 382.6 MB, free: 53.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008094/0.4696, allocations: 380.4 kB / 383 MB, free: 53.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/0.4749, allocations: 2.557 MB / 385.6 MB, free: 52.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.789e-05/0.475, allocations: 37.38 kB / 385.6 MB, free: 52.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.4751, allocations: 53.72 kB / 385.6 MB, free: 52.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/0.4772, allocations: 0.756 MB / 386.4 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4772, allocations: 3.938 kB / 386.4 MB, free: 52.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.371e-05/0.4773, allocations: 22.22 kB / 386.4 MB, free: 52.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.4773, allocations: 22.45 kB / 386.4 MB, free: 52.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.4793, allocations: 0.8533 MB / 387.3 MB, free: 51.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006567/0.4859, allocations: 2.982 MB / 390.3 MB, free: 50.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.4879, allocations: 0.7951 MB / 391.1 MB, free: 49.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.4895, allocations: 0.9524 MB / 392 MB, free: 49.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/0.5173, allocations: 30.14 MB / 422.2 MB, free: 19.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.5186, allocations: 0.591 MB / 422.8 MB, free: 19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 5.892e-06/0.5186, allocations: 0 / 422.8 MB, free: 19 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01229/0.5309, allocations: 5.241 MB / 428 MB, free: 13.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.531, allocations: 68.39 kB / 428.1 MB, free: 13.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.5339, allocations: 2.713 MB / 430.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.495e-05/0.534, allocations: 41.7 kB / 430.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008301/0.5348, allocations: 1.296 MB / 432.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.5351, allocations: 339.2 kB / 432.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.5354, allocations: 234.2 kB / 432.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.5355, allocations: 349.9 kB / 433 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.5366, allocations: 478 kB / 433.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.5377, allocations: 0.647 MB / 434.1 MB, free: 7.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.5399, allocations: 1.126 MB / 435.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.5399, allocations: 4 kB / 435.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003803/0.5437, allocations: 1.979 MB / 437.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.5437, allocations: 4 kB / 437.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/0.5439, allocations: 116.5 kB / 437.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006791/0.5446, allocations: 270.5 kB / 437.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.5454, allocations: 202 kB / 437.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.556, allocations: 14.25 MB / 452.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/0.5583, allocations: 87.89 kB / 452.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/0.5585, allocations: 60.06 kB / 452.2 MB, free: 3.656 MB / 334.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.001161/0.5597, allocations: 430.2 kB / 452.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009741/0.5607, allocations: 371.5 kB / 453 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005554/0.5662, allocations: 2.221 MB / 455.2 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.5662, allocations: 8 kB / 455.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-05/0.5663, allocations: 4 kB / 455.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.5663, allocations: 7.984 kB / 455.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.5698, allocations: 1.547 MB / 456.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001673/0.57, allocations: 116 kB / 456.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007269/0.5707, allocations: 143.6 kB / 457 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/0.5714, allocations: 265.6 kB / 457.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.5716, allocations: 47.91 kB / 457.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/0.5841, allocations: 14.25 MB / 471.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5842, allocations: 0 / 471.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006191/0.5904, allocations: 2.547 MB / 474.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/0.592, allocations: 0.4964 MB / 474.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/0.5931, allocations: 16 kB / 474.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.5942, allocations: 83.89 kB / 474.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.5946, allocations: 132.8 kB / 474.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.5947, allocations: 59.91 kB / 474.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00273/0.5975, allocations: 1.778 MB / 476.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5975, allocations: 0 / 476.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001972/0.5995, allocations: 0.66 MB / 477.4 MB, free: 8.832 MB / 366.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.006987/0.6064, allocations: 3.835 MB / 481.2 MB, free: 4.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004552/0.611, allocations: 2.545 MB / 483.7 MB, free: 2.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.611, allocations: 0 / 483.7 MB, free: 2.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002557/0.6136, allocations: 1.956 MB / 485.7 MB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/0.6162, allocations: 0.5169 MB / 486.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04729/0.6635, allocations: 23.26 MB / 0.4975 GB, free: 6.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.6648, allocations: 1.678 MB / 0.4992 GB, free: 4.645 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001565/0.6663, allocations: 391.4 kB / 0.4995 GB, free: 4.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.6677, allocations: 1.202 MB / 0.5007 GB, free: 3.055 MB / 398.1 MB Notification: Performance of SimCode: time 3.477e-06/0.6677, allocations: 0 / 0.5007 GB, free: 3.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3513/1.019, allocations: 65.71 MB / 0.5649 GB, free: 107.6 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/1.019, allocations: 207.9 kB / 0.5651 GB, free: 107.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.422/5.441, allocations: 0 / 0.5651 GB, free: 107.3 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches