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.001526/0.001526, allocations: 114.5 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.001847/0.001847, allocations: 183 kB / 18.66 MB, free: 4.418 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.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001398/0.001398, allocations: 55.94 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09266/0.09407, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2268/0.3209, allocations: 13.52 MB / 388.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02725/0.3482, allocations: 19.37 MB / 407.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003651/0.3519, allocations: 125.1 kB / 407.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003932/0.3559, allocations: 1.089 MB / 408.7 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.3678, allocations: 2.26 MB / 411 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006822/0.3747, allocations: 1.383 MB / 412.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01109/0.3858, allocations: 6.273 MB / 418.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008418/0.3867, allocations: 439.6 kB / 419.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001961/0.3886, allocations: 1.004 MB / 420.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.3902, allocations: 1.055 MB / 421.1 MB, free: 276 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.3904, allocations: 76.53 kB / 421.2 MB, free: 276 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004941/0.3954, allocations: 1.151 MB / 422.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003949/0.3958, allocations: 335.4 kB / 422.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.3976, allocations: 1.328 MB / 424 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006547/0.4042, allocations: 3.713 MB / 427.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4042, allocations: 0 / 427.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.4042, allocations: 0 / 427.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.385e-05/0.4043, allocations: 0 / 427.7 MB, free: 10.67 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.005492/0.4098, allocations: 3.588 MB / 431.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.4098, allocations: 8.031 kB / 431.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.4099, allocations: 98.5 kB / 431.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004224/0.4104, allocations: 379.4 kB / 431.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/0.4139, allocations: 2.54 MB / 434.3 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.414, allocations: 44.92 kB / 434.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.4141, allocations: 47.91 kB / 434.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.4155, allocations: 0.7538 MB / 435.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.4155, allocations: 0 / 435.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.76e-05/0.4156, allocations: 24 kB / 435.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.4156, allocations: 19.98 kB / 435.2 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.4174, allocations: 0.8631 MB / 436.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.4222, allocations: 2.976 MB / 439.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.4239, allocations: 0.7949 MB / 439.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.4254, allocations: 0.9563 MB / 440.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0302/0.4556, allocations: 30.11 MB / 470.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.4568, allocations: 0.5996 MB / 471.5 MB, free: 10.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 3.206e-06/0.4568, allocations: 3.938 kB / 471.5 MB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=99): time 0.01211/0.4689, allocations: 5.236 MB / 476.8 MB, free: 5.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.469, allocations: 76.38 kB / 476.8 MB, free: 4.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/0.4723, allocations: 2.709 MB / 479.6 MB, free: 2.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.4725, allocations: 45.69 kB / 479.6 MB, free: 2.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.4735, allocations: 1.296 MB / 480.9 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002753/0.4738, allocations: 339.1 kB / 481.2 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003302/0.4742, allocations: 230.3 kB / 481.4 MB, free: 296 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.4743, allocations: 345.9 kB / 481.8 MB, free: 15.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4755, allocations: 474 kB / 482.2 MB, free: 15.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.4769, allocations: 0.6476 MB / 482.9 MB, free: 14.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.4795, allocations: 1.133 MB / 484 MB, free: 13.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4795, allocations: 3.938 kB / 484 MB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004105/0.4837, allocations: 1.98 MB / 486 MB, free: 11.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4837, allocations: 7.938 kB / 486 MB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001628/0.4839, allocations: 120 kB / 486.1 MB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007262/0.4846, allocations: 274.9 kB / 486.4 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008912/0.4855, allocations: 195.7 kB / 486.6 MB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009739/0.4953, allocations: 14.24 MB / 0.4891 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.4967, allocations: 91.95 kB / 0.4892 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.4969, allocations: 57 kB / 0.4892 GB, free: 11.12 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.0009772/0.4979, allocations: 425.6 kB / 0.4896 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007067/0.4986, allocations: 375.5 kB / 0.49 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.5037, allocations: 2.224 MB / 0.4922 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.5037, allocations: 8 kB / 0.4922 GB, free: 8.008 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.5037, allocations: 8 kB / 0.4922 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.5038, allocations: 3.984 kB / 0.4922 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.5061, allocations: 1.555 MB / 0.4937 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000144/0.5063, allocations: 116 kB / 0.4938 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/0.507, allocations: 136.7 kB / 0.494 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000661/0.5077, allocations: 264.3 kB / 0.4942 GB, free: 5.852 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.5078, allocations: 47.97 kB / 0.4943 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009238/0.517, allocations: 14.24 MB / 0.5082 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.517, allocations: 0 / 0.5082 GB, free: 6.168 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005585/0.5226, allocations: 2.555 MB / 0.5107 GB, free: 3.523 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.5238, allocations: 496.5 kB / 0.5111 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004944/0.5243, allocations: 16 kB / 0.5111 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.5254, allocations: 87.88 kB / 0.5112 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003478/0.5258, allocations: 132.8 kB / 0.5114 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.5259, allocations: 51.98 kB / 0.5114 GB, free: 2.734 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002891/0.5288, allocations: 1.79 MB / 0.5132 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5288, allocations: 4 kB / 0.5132 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001801/0.5306, allocations: 0.6561 MB / 0.5138 GB, free: 284 kB / 446.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.006997/0.5376, allocations: 3.82 MB / 0.5175 GB, free: 12.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.5418, allocations: 2.522 MB / 0.52 GB, free: 9.684 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5418, allocations: 0 / 0.52 GB, free: 9.684 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002581/0.5444, allocations: 1.96 MB / 0.5219 GB, free: 7.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002147/0.5466, allocations: 0.518 MB / 0.5224 GB, free: 7.047 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/0.5778, allocations: 18.23 MB / 0.5402 GB, free: 4.375 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.5793, allocations: 1.666 MB / 0.5418 GB, free: 2.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001286/0.5807, allocations: 395.4 kB / 0.5422 GB, free: 2.289 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.5819, allocations: 1.202 MB / 0.5434 GB, free: 1.086 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.582, allocations: 0 / 0.5434 GB, free: 1.086 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3061/0.888, allocations: 68.16 MB / 0.61 GB, free: 109.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.46/19.35, allocations: 11.88 kB / 0.61 GB, free: 109.6 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 & /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)