Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 97.66 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 203.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 8 kB / 306.6 MB, free: 1.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1067, allocations: 51.49 MB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009418/0.1161, allocations: 11.39 MB / 369.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1687/0.2849, allocations: 17.53 MB / 387 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.2863, allocations: 60.56 kB / 387.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.2889, allocations: 0.8951 MB / 387.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007008/0.2959, allocations: 2.075 MB / 390 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005587/0.3015, allocations: 1.184 MB / 391.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.313, allocations: 6.141 MB / 397.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007295/0.3138, allocations: 401.9 kB / 397.7 MB, free: 468 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.3156, allocations: 0.9217 MB / 398.7 MB, free: 16 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.3173, allocations: 0.9954 MB / 399.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001878/0.3175, allocations: 42.78 kB / 399.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005453/0.323, allocations: 1.438 MB / 401.1 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004036/0.3234, allocations: 267.5 kB / 401.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.3246, allocations: 0.5987 MB / 402 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003007/0.3276, allocations: 2.536 MB / 404.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.3276, allocations: 0 / 404.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3276, allocations: 0 / 404.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000129/0.3277, allocations: 4 kB / 404.5 MB, free: 12.68 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.004987/0.3327, allocations: 3.159 MB / 407.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.3328, allocations: 12.91 kB / 407.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003866/0.3332, allocations: 381.9 kB / 408.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003632/0.3368, allocations: 2.368 MB / 410.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.904e-05/0.3368, allocations: 36.95 kB / 410.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.337, allocations: 48 kB / 410.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3384, allocations: 0.785 MB / 411.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3385, allocations: 7.938 kB / 411.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.378e-05/0.3385, allocations: 16 kB / 411.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.04e-05/0.3386, allocations: 19.98 kB / 411.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.3404, allocations: 0.9139 MB / 412.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004964/0.3453, allocations: 2.994 MB / 415.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.3471, allocations: 0.8507 MB / 416.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02979/0.3769, allocations: 30.9 MB / 447 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.3781, allocations: 0.6231 MB / 447.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.116e-06/0.3781, allocations: 4 kB / 447.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01259/0.3907, allocations: 6.001 MB / 453.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.3908, allocations: 68.41 kB / 453.7 MB, free: 7.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002921/0.3937, allocations: 2.657 MB / 456.4 MB, free: 5.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.333e-05/0.3938, allocations: 45.7 kB / 456.4 MB, free: 5.105 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009827/0.3948, allocations: 1.299 MB / 457.7 MB, free: 3.801 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.3951, allocations: 343.1 kB / 458 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.3951, allocations: 20 kB / 458.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3952, allocations: 345.9 kB / 458.4 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.3965, allocations: 0.5254 MB / 458.9 MB, free: 2.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/0.3979, allocations: 0.7095 MB / 459.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.3991, allocations: 0.5691 MB / 460.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3992, allocations: 0 / 460.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003927/0.4031, allocations: 2.093 MB / 462.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.4031, allocations: 8 kB / 462.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.4033, allocations: 120 kB / 462.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006242/0.4039, allocations: 260.6 kB / 462.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009146/0.4048, allocations: 235.6 kB / 462.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008296/0.4131, allocations: 13.32 MB / 476.2 MB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.4147, allocations: 124 kB / 476.3 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.4149, allocations: 60 kB / 476.4 MB, free: 15.6 MB / 398.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 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007961/0.4157, allocations: 429.6 kB / 476.8 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003539/0.416, allocations: 367.6 kB / 477.2 MB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.4212, allocations: 2.359 MB / 479.5 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4213, allocations: 8 kB / 479.5 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4213, allocations: 8 kB / 479.6 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4213, allocations: 7.969 kB / 479.6 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.4232, allocations: 1.539 MB / 481.1 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000149/0.4234, allocations: 116 kB / 481.2 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007604/0.4241, allocations: 163.8 kB / 481.4 MB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005924/0.4247, allocations: 264.3 kB / 481.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.513e-05/0.4248, allocations: 43.98 kB / 481.7 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008282/0.4331, allocations: 13.32 MB / 495 MB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4331, allocations: 0 / 495 MB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005413/0.4386, allocations: 2.727 MB / 497.7 MB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/0.4396, allocations: 492.4 kB / 498.2 MB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.4399, allocations: 23.95 kB / 498.2 MB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.441, allocations: 115.9 kB / 498.3 MB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003257/0.4413, allocations: 140.8 kB / 498.5 MB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.984e-05/0.4414, allocations: 51.98 kB / 498.5 MB, free: 7.852 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002185/0.4436, allocations: 1.735 MB / 0.4885 GB, free: 6.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4436, allocations: 0 / 0.4885 GB, free: 6.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001592/0.4452, allocations: 0.6522 MB / 0.4892 GB, free: 5.457 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009965/0.4462, allocations: 0.7688 MB / 0.4899 GB, free: 4.684 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004252/0.4505, allocations: 2.631 MB / 0.4925 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4505, allocations: 192 / 0.4925 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002563/0.4531, allocations: 2.022 MB / 0.4945 GB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.4555, allocations: 0.5748 MB / 0.495 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006482/0.462, allocations: 5.338 MB / 0.5002 GB, free: 9.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.4631, allocations: 1.72 MB / 0.5019 GB, free: 8.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.4645, allocations: 391.3 kB / 0.5023 GB, free: 7.633 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.4647, allocations: 163.4 kB / 0.5025 GB, free: 7.473 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4648, allocations: 0 / 0.5025 GB, free: 7.473 MB / 430.1 MB Notification: Performance of Templates: time 0.2127/0.6775, allocations: 33.67 MB / 0.5353 GB, free: 141 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches