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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008364/0.0008368, allocations: 101.3 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001005, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002687, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1076, allocations: 51.48 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01138/0.1191, allocations: 12.57 MB / 370.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2593/0.3784, allocations: 18.57 MB / 389.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002462/0.3809, allocations: 70.38 kB / 389.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003781/0.3847, allocations: 0.8738 MB / 390.4 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01202/0.3968, allocations: 1.83 MB / 392.2 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006582/0.4034, allocations: 1.109 MB / 393.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.4161, allocations: 6.098 MB / 399.4 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.4174, allocations: 396.7 kB / 399.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002811/0.4203, allocations: 0.9404 MB / 400.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.4225, allocations: 0.9893 MB / 401.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002455/0.4228, allocations: 42.56 kB / 401.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006923/0.4297, allocations: 1.338 MB / 403.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006001/0.4304, allocations: 273 kB / 403.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.4322, allocations: 0.5988 MB / 404 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003876/0.4361, allocations: 2.637 MB / 406.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4361, allocations: 0 / 406.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4362, allocations: 0 / 406.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.573e-05/0.4362, allocations: 0 / 406.6 MB, free: 11.87 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.005153/0.4414, allocations: 3.169 MB / 409.8 MB, free: 9.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.4414, allocations: 12.03 kB / 409.8 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.4416, allocations: 94.52 kB / 409.9 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004289/0.442, allocations: 379.4 kB / 410.3 MB, free: 8.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003804/0.4458, allocations: 2.384 MB / 412.6 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.236e-05/0.4459, allocations: 33 kB / 412.7 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.446, allocations: 51.91 kB / 412.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4475, allocations: 0.789 MB / 413.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.4475, allocations: 0 / 413.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.909e-05/0.4476, allocations: 16 kB / 413.5 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.4476, allocations: 19.98 kB / 413.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.4493, allocations: 0.9178 MB / 414.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005194/0.4545, allocations: 3.006 MB / 417.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.4562, allocations: 0.8507 MB / 418.3 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.4577, allocations: 0.9955 MB / 419.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03146/0.4892, allocations: 30.73 MB / 450.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001222/0.4905, allocations: 0.6269 MB / 450.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.035e-06/0.4905, allocations: 0 / 450.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01257/0.5031, allocations: 5.709 MB / 456.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.5032, allocations: 68.39 kB / 456.5 MB, free: 5.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003493/0.5067, allocations: 2.661 MB / 459.1 MB, free: 2.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.5068, allocations: 41.7 kB / 459.2 MB, free: 2.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001176/0.508, allocations: 1.303 MB / 460.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004108/0.5084, allocations: 331.2 kB / 460.8 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.029e-05/0.5085, allocations: 20 kB / 460.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002267/0.5088, allocations: 349.9 kB / 461.1 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.5101, allocations: 0.5293 MB / 461.7 MB, free: 404 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.5115, allocations: 0.7124 MB / 462.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.5128, allocations: 0.573 MB / 463 MB, free: 15.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5128, allocations: 0 / 463 MB, free: 15.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00415/0.517, allocations: 2.089 MB / 465 MB, free: 12.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.517, allocations: 11.95 kB / 465.1 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/0.5172, allocations: 124 kB / 465.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006716/0.5179, allocations: 272.8 kB / 465.4 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008406/0.5187, allocations: 228.5 kB / 465.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009373/0.5281, allocations: 13.24 MB / 478.9 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00198/0.5301, allocations: 120 kB / 479 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.5303, allocations: 60 kB / 479.1 MB, free: 13.48 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.001096/0.5314, allocations: 421.6 kB / 479.5 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005599/0.532, allocations: 375.5 kB / 479.9 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005175/0.5372, allocations: 2.332 MB / 482.2 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.5372, allocations: 12 kB / 482.2 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.5372, allocations: 4 kB / 482.2 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.5372, allocations: 3.984 kB / 482.2 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002875/0.5401, allocations: 1.546 MB / 483.8 MB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001756/0.5403, allocations: 120 kB / 483.9 MB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007126/0.541, allocations: 167.8 kB / 484 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006513/0.5417, allocations: 264.3 kB / 484.3 MB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.5418, allocations: 43.98 kB / 484.4 MB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009187/0.551, allocations: 13.24 MB / 497.6 MB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.551, allocations: 0 / 497.6 MB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005637/0.5567, allocations: 2.727 MB / 0.4886 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/0.558, allocations: 496.5 kB / 0.4891 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/0.5583, allocations: 20 kB / 0.4891 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009074/0.5592, allocations: 115.9 kB / 0.4892 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/0.5596, allocations: 140.8 kB / 0.4893 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.5597, allocations: 47.98 kB / 0.4894 GB, free: 5.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002334/0.562, allocations: 1.735 MB / 0.4911 GB, free: 4.086 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.562, allocations: 0 / 0.4911 GB, free: 4.086 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001908/0.5639, allocations: 0.6561 MB / 0.4917 GB, free: 3.43 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.006327/0.5703, allocations: 3.976 MB / 0.4956 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004067/0.5744, allocations: 2.632 MB / 0.4982 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.5744, allocations: 4 kB / 0.4982 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002486/0.5769, allocations: 2.015 MB / 0.5001 GB, free: 10.39 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/0.58, allocations: 0.6087 MB / 0.5007 GB, free: 9.781 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04001/0.62, allocations: 19.26 MB / 0.5195 GB, free: 4.746 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.6212, allocations: 1.662 MB / 0.5212 GB, free: 3.059 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.6229, allocations: 391.3 kB / 0.5215 GB, free: 2.672 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.6242, allocations: 1.194 MB / 0.5227 GB, free: 1.48 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6242, allocations: 0 / 0.5227 GB, free: 1.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2931/0.9173, allocations: 61.7 MB / 0.583 GB, free: 104.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.9175, allocations: 195.2 kB / 0.5831 GB, free: 104.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.996/4.913, allocations: 0 / 0.5831 GB, free: 104.2 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)